Boost logo

Boost :

Subject: Re: [boost] Proposal for #pragma once support
From: John Maddock (john_at_[hidden])
Date: 2009-06-10 04:39:19


> I agree that it would need to be automated. But the script itself should
> be
> very trivial, I'd be willing to try it myself. And perhaps the best
> approach is what I mentioned in a previous post, to force the programmer
> to
> explicitly define BOOST_USE_PRAGMA_ONCE before including a boost header
> file. This would solve the problem of having to modify every header when
> new compilers were released. And since by default it would be undefined,
> an
> out-of-the-box boost installation would work exactly as it does now. I'll
> work on this a bit later today perhaps, and try to post some benchmarks
> for
> for compiling boost itself, and for compiling a commercial product which
> uses boost.

Thanks Zach, that would be really useful!

John.


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