Boost logo

Boost :

Subject: Re: [boost] BOOST_HAS_PRAGMA_ONCE
From: Olaf van der Spek (ml_at_[hidden])
Date: 2015-02-04 12:47:54


On Wed, Feb 4, 2015 at 6:20 PM, Ion Gaztañaga <igaztanaga_at_[hidden]> wrote:
>> Yes, it should be a very tiny help.. except if config.hpp also uses
>> pragma once ;-)
>
>
> And I've seen it uses it ;-)
>
> #ifdef BOOST_HAS_PRAGMA_ONCE
> #pragma once
> #endif
>
> so it would only help on compilers without pragma once, in any case, I just
> put that on one file and copy-pasted, there was no any clever intention on
> that.

Compilers without pragma once might also be smart enough not to
reopen/reparse the entire file if they detect header guards.


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