Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2004-01-04 01:52:36


"Hartmut Kaiser" <hartmutkaiser_at_[hidden]> wrote in

> It's a pain to re-iterate all the conditions and compilers, which support
> the #pragma once for every
>
> #if (defined(_MSC_VER) && _MSC_VER >= 1020) || defined(__WAVE__) ||
etc.
> #pragma once
> #endif
>
> So I mandate for using a BOOST_... constant for this. The Boost.Config
> headers are included first anyways, and not using a #pragma once inside
> those shouldn't hurt so much.
>
About the effect of #pragma once: it was found quite useful:
http://aspn.activestate.com/ASPN/Mail/Message/boost/1798707

/Pavel


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