31 Mar
2009
31 Mar
'09
4:12 p.m.
Jared Lee Richardson: ...
I have the following situation, simplified down.
Header file 1:
class Test1 { vector<Test2Ptr> mTest2Objects; };
typedef boost::shared_ptr<Test1> Test1Ptr;
Header file 2:
class Test2 { vector<Test1Ptr> mTest1Objects; };
typedef boost::shared_ptr<Test2> Test2Ptr;
Now normally I'd get around this easily by doing a forward declaration, but I can't do that with a smart pointer definition.
Why not? With raw pointers you'd do:
class Test2;
class Test1
{
vector