
5 Nov
2011
5 Nov
'11
11:08 a.m.
On Sat, Nov 5, 2011 at 9:00 AM, Andrey Semashev <andrey.semashev@gmail.com> wrote:
Why? What's the benefit over using the default constructor?
I want this for interface consistency which can be useful in generic code and,
Do you know existing generic code that'd be affected and couldn't use the default constructor?
well, is the expected behavior. Every smart pointer tries to mimic raw pointers and the constructor ambiguity reduces this similarity. I also don't want to update my code when it breaks.
What's the problem with updating your code? Also, could you address how you'd implement this in C++03? -- Olaf