Boost logo

Boost Users :

Subject: Re: [Boost-users] Visual Studio 2010 Building Error
From: Jan Krabbenbos (jan.krabbenbos_at_[hidden])
Date: 2011-02-12 02:38:23


Hello Abdullah,

I have had this problem also. From VS2010 there is also a shared_ptr in the std namespace (C++0X), which has the same function as the Boost shared_ptr. Probably there is a namespace clash somewhere in your code (both std and boost declared) without using the explicit namespace.

Greetings,
Jan

On 11 feb 2011, at 15:13, 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> &&'
>
> Do you have any clue or advice on how to solve it?
>
> Greetings!
>
> --
> Abdullah García
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

Met vriendelijke groet,

Jan Krabbenbos
jan.krabbenbos_at_[hidden]



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