on Sun Jun 24 2012, Johannes Schaub <
schaub.johannes-AT-googlemail.com> wrote:
> I understand why we want "0" to be convertible to nullptr_t, but
> can't understand why "{0}" should have that property (which is
> what I see here).
>
>
>
> I understand the position that 0 be convertible to shared_ptr<T>. But
> I think it is better to leave it unconvertible to shared_ptr.
> boost::shared_ptr<> does not seem to allow it either (though I don't
> know whether that's merely because of lack of "nullptr_t" in C++03),
> and the usual recommended way to specify null pointer constants is
> through "nullptr".
>
> That {0} is allowed too is just a consequence of the rules of list
> initalization.
I figured as much. I'm suggesting maybe those rules may not be adequate