On 27/05/2017 21:43, Gene Kang via Boost-users wrote:
I’m using boost::movelib::unique_ptr with a polymorphic container of type boost::container::vector and getting a compiler error that I can’t seem to figure out (see code sample and attached compiler output). Note, this error occurs when compiling without C++11 support w/ x86-64 gcc 4.9.3. When compiling w/ C++11 support (e.g. -std=c++11) the code compiles fine. Any ideas ? Thanks in advance for any help on this.
Move emulation in C++98 does not support automatic conversions from
derived to base classes.
Try converting to FooAPtr first:
#include