[smart ptr] implicit auto_ptr r-value initialization for scoped_ptr?
8 Jan
2009
8 Jan
'09
12:50 a.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
6142
Age (days ago)
6142
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jason Moore