Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-12-11 09:55:33


"John Maddock" <john_at_[hidden]> writes:

> This issue is coming up so often we need to provide a better error message
> scheme, when users see:
>
> c:\data\boost\develop\boost\boost\thread\mutex.hpp(17): fatal error C1189:
> #error : Thread support is unavailable!
>
> They assume it's a bug in the library rather than a compile time problem on
> their part.
>
> How about a new header - lets say boost/thread/errors.hpp that gets included
> whenever BOOST_HAS_THREADS is undefined and issues the appropriate messages
> with helpful comments on how to turn on threading support, for example:

Looks good to me, except that it should be called something like
boost/thread/check_options.hpp, and you should be able to include it
unconditionally - *it* should do the checking.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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