[smart ptr] implicit auto_ptr r-value initialization for scoped_ptr?

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
6001
Age (days ago)
6001
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jason Moore