Fernando Cacciola (Home) wrote: [...] > One is initialization from a null pointer value, as in: > > struct C > { > C() : ptr(0) {} > > shared_ptr<X> ptr ; > } ; > > this one is very useful because its very idiomatic.
Use C() : ptr() {} instead; it is supposed to work for any pointer. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost