Boost logo

Boost :

From: Steve Hutton (shutton_at_[hidden])
Date: 2003-08-30 13:56:23


In article <04d901c36e25$c82b1da0$05cc6b51_at_fuji>, John Maddock wrote:
>
> Threading support is on when BOOST_HAS_THREADS is defined, and off when it's
> not, or forced off by defining BOOST_DISABLE_THREADS, you'll find both of
> these mentioned in the configure generated user.hpp (and in the config
> docs).

So if I my program runs only on systems that I know support threads,
and I want shared_ptr to use threading support, my program can guarantee
this by defining BOOST_HAS_THREADS? No matter whether the user's Boost
install is -

1) Simply extracted from the tarball
2) Configured without thread support
3) Configured with thread support

And I don't need to define anything about the platform thread library being
used, like BOOST_HAS_PTHREADS?

Steve


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