Boost logo

Boost Users :

Subject: Re: [Boost-users] Visual Studio 2010 Building Error
From: Peter Dimov (pdimov_at_[hidden])
Date: 2011-02-12 12:16:48


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.


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