
12 Feb
2011
12 Feb
'11
5:16 p.m.
Abdullah GarcĂa wrote:
Hi,
I have been working previously with Visual Studio 2008 and I haven't had any problem with my actual code. I needed to migrate my whole solution to Visual Studio 2010 and now I get the following error:
error C2664: 'boost::shared_ptr<T>::shared_ptr(boost::shared_ptr<T> &&)' : cannot convert parameter 1 from 'std::tr1::shared_ptr<_Ty>' to 'boost::shared_ptr<T> &&'
You are using both boost::shared_ptr and std::tr1::shared_ptr in your code, and attempt to assign one to the other. Under Visual Studio 2008 (and, I assume, Boost.TR1) they are the same. Visual Studio 2010 has its own std::tr1::shared_ptr which is not the same as boost::shared_ptr.