Re: [Boost-users] shared_ptr compile error ms vc++ 8
Was an answer to a previous question regarding locating the source of the error using vc++ 8 regards, Andrew
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org]On Behalf Of Mateusz Loskot Sent: Monday, 24 July 2006 5:02 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] shared_ptr compile error ms vc++ 8
Andrew McDonald wrote:
I am using VC++ 2005 Express Edition v 8.0.050727.42.
When compiling the following line in a file example.cpp;
boost::shared_ptr<int> p(new std::string) --------------------^^^-------------^^^^^^
int type is not a string type, and the other way.
Best regards -- Mateusz Loskot http://mateusz.loskot.net _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Andrew McDonald wrote:
Was an answer to a previous question regarding locating the source of the error using vc++ 8
When compiling the following line in a file example.cpp;
boost::shared_ptr<int> p(new std::string)
you would have error from any compiler, because this code is illformed. There is no conversion from std::string* to int* . B.
participants (2)
-
Andrew McDonald
-
Bronek Kozicki