Boost logo

Boost :

From: williamkempf_at_[hidden]
Date: 2001-08-03 08:51:32


--- In boost_at_y..., John Maddock <John_Maddock_at_c...> wrote:
>
> >Would'nt it be a good idea to put in an `#error` in the
> >select_*_config.hpp in case the platform/compiler/stdlib is not
> >recognised ?
>
> I don't think so, the idea is that you shouldn't have to set *any*
macros
> for a fully conformant compiler (OK there may exceptions like the
thread
> code, but that is an exception rather than the rule), so not
detecting the
> compiler/standard lib/platform is harmless provided that
compiler/standard
> lib/platform is free from defects from the standard.

Any exceptions to the rule should follow the same logic that
Boost.Threads does. When BOOST_HAS_THREADS is not defined all of the
Boost.Threads headers detect this and issue a #error directive. This
way the error occurs only if you attempt to use Boost.Threads with a
compiler/platform that's not defined to support threading.

Bill Kempf


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