Boost logo

Boost Users :

Subject: Re: [Boost-users] shared_ptr on template class
From: Roman Shmelev (rshmelev_at_[hidden])
Date: 2009-08-19 12:21:26


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 list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net