Re: [Boost-users] shared_ptr on template class

20 Aug
2009
20 Aug
'09
3:02 p.m.
hi i would have done the same. have not try it on my machine though 在 20-Aug-2009 12:21 AM 時,Roman Shmelev <rshmelev@gmail.com> 寫到: Probably a bit offtopic, but I do the following when working with templated classes: typedef MyClass<P1> me; typedef boost::shared_ptr<me> pointer; so, later everything will depend on "me", for example: return pointer(new me); Also, this code could be reused when creating other classes. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
5770
Age (days ago)
5770
Last active (days ago)
0 comments
1 participants
participants (1)
-
hweekuan