|
Boost Users : |
Subject: Re: [Boost-users] alignment error with make_shared?
From: Peter Dimov (pdimov_at_[hidden])
Date: 2010-03-24 17:27:12
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.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net