Boost logo

Boost Users :

From: Bronek Kozicki (brok_at_[hidden])
Date: 2006-07-24 06:37:24


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.


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