I've got the following class definition:
class Portal
{
public:
Portal( const vector<vec3> &vertices, shared_ptr<Sector> target );
...
};
Somewhere else, I want to create an instanceof said class like this:
auto portal = make_shared<Portal>( portalVertices, target );
However, I get the following error message in Visual Studio 2010:
error C2668: 'boost::make_shared' : ambiguous call to overloaded function
Can anyone tell me why? I only define a single constructor. Thank you!