This code does not compile:
namespace boost { template<class T> class scoped_ptr; } namespace FooNamespace { class FooClass { boost::scoped_ptr<FooType> foo; }; }
g ++ says: error: field 'foo has incomplete type
I thought everything would be alright, since I copied the scoped_ptr declaration from the actual Boost header file ... What did I screw?
Note: the problem is not FooType . I tried replacing its int no avail ...
Thanks!
source share