
7 Jan
2009
7 Jan
'09
9:50 p.m.
This is absolute genius!!! (i.e. implicit only for r-values of type std::auto_ptr<T>) std::auto_ptr<T> Create(); ... if (boost::shared_ptr<T> my_ptr = Create()) { my_ptr->doIt(); } Why is this feature not provided for boost::scoped_ptr? Thanks, Jason Moore