Boost logo

Boost :

From: Hartmut Kaiser (hartmutkaiser_at_[hidden])
Date: 2004-01-03 16:24:45


Pavel Vozenilek wrote:

> > I am inclined towards a new policy for Boost which requires compiler
> > identification only via BOOST_-prefixed macros.
> >
> Not always:
>
> #if (defined _MSC_VER) && (_MSC_VER >= ...)
> # pragma once
> #endif
>
> like situations may happen sometimes.

This may be done through a BOOST_HAS_PRAGMA_ONCE pp constant, because there
are other preprocessors too, which support the #pragma once (for instance
Wave :-).

Regards Hartmut


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