I have one class that holds a shared_ptr
to another class. I am getting a compilation error with the shared_ptr
declaration that says "no members defined using this type." My code to duplicate this is very short:
#include <iostream>
#include <boost/shared_ptr.hpp>
class MyClassImpl
{
};
class MyClass
{
public:
boost::shared_ptr<MyClassImpl> _sptr;
//error C2208: 'boost::shared_ptr<T>' : no members defined using this type
};
int main()
{
MyClass mc;
return 0;
}
What am I doing wrong here? I'm Visual Studio Professional 2010 with Boost 1.54.