
19 Aug
2009
19 Aug
'09
4:21 p.m.
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.