
24 Mar
2010
24 Mar
'10
9:27 p.m.
Kenny Riddile wrote:
m_meshes is a std::vector< boost::shared_ptr<const Mesh> > in the code below, and Mesh is constructible from a const std::string&
BOOST_FOREACH( const std::string& fileName, meshFiles ) { m_meshes.push_back( boost::make_shared<Mesh>(fileName) ); }
Using make_shared here gives me the following error, while explicitly constructing a shared_ptr does not. Mesh isn't defined with __declspec(align('16')), but I believe it owns a member that is. Am I doing something wrong or is this a known limitation of make_shared?
It is a known limitation of boost::make_shared, sorry.