Re: [Boost-users] shared_ptr compile error ms vc++ 8
you misunderstand....I was answering a prior question posted by bringiton asking how to diagnose the specific source code location of such errors when compiled using vc++ 8... not a question regarding whether or not such code is in error... My posting was an example confirming for bringiton that the error output produced by vc++ 8 specifically also referenced the module/line number that attempted to instantiate the shared_ptr template, rather than just the error location inside the shared_ptr header. Although I am now regretting posting.... ;) regards, Andrew
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org]On Behalf Of Bronek Kozicki Sent: Monday, 24 July 2006 6:37 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] shared_ptr compile error ms vc++ 8
Was an answer to a previous question regarding locating the
Andrew McDonald wrote: 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. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Yes, Andrew you are correct. The others have not read my original post
correctly.
The compile error is deliberate.
The discussion was on how the compiler handles the error.
Thanks for posts
On 7/24/06, Bronek Kozicki
Andrew McDonald
wrote: you misunderstand....I was answering a prior question posted by bringiton
oops, sorry about that.
Although I am now regretting posting.... ;)
don't lose your heart! ;)
B.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
Andrew McDonald
-
bringiton bringiton
-
Bronek Kozicki