
11 Dec
2009
11 Dec
'09
6:13 p.m.
2009/12/11 Eric J. Holtman
class Request : private boost::enable_shared_from_this<Request> { public: boost::shared_ptr<Request> get_ptr () { if (conditions_are_good) return shared_from this (); else throw std::logic_error ("Bad get"); }; };
Try declaring boost::enable_shared_from_this<Request> a friend of Request. Roman Perepelitsa.