Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-06-30 05:28:47


John Maddock wrote:
> > May I suggest that at least this warning is not emitted when expicit
> > BOOST_DISABLE_THREADS or BOOST_HAS_THREADS were specified by the user, so
> > that I can have a way to kill the warning?
>
> Just a small point the user should never really define BOOST_HAS_THREADS:
> although it will turn on Boost thread support, that doesn't mean that the
> compiler can actually produce thread safe code (for example gcc on one or
> two Unix platforms is incapable of producing thread safe code, even though
> all the underlying support, -lpthread etc is there).

Point taken. But it's actually does not matter how the macro is named:
BOOST_HAS_THREADS, BOOST_ENABLE_THREADS or
BOOST_I_AM_GOING_TO_LINK_PTHREADS, as long as I'm not stuck with the warning.

- Volodya


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