Boost logo

Boost :

From: Bronek Kozicki (brok_at_[hidden])
Date: 2005-04-24 03:14:12


Peter Dimov wrote:
> your program is broken and should fail to compile, but doesn't. That's
> why I still think that it's better to define BOOST_SP_DISABLE_THREADS

You are right and I agree with your conclusion. But then, any test
program that needs Windows API will need to compile in separate TU
without --a. Threads are basically useless in como 4.3.3, because any
program that depends on Boost.Threads will not compile, anyway.

Below you will find another experiment

B.

MSYS>como --a -DBOOST_SP_DISABLE_THREADS -IG:\boost T680.cpp -oT680
Comeau C/C++ 4.3.3 (Jan 13 2004 11:29:09) for MS_WINDOWS_x86
Copyright 1988-2003 Comeau Computing. All rights reserved.
MODE:strict warnings C++

"T680.cpp", line 7: error: no suitable constructor exists to convert
from "A *" to "boost::shared_ptr<A>"
         boost::shared_ptr<A> a = new A();
                                  ^

1 error detected in the compilation of "T680.cpp".


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk