Boost logo

Boost :

Subject: Re: [boost] [#pragma once]
From: Edouard A. (edouard_at_[hidden])
Date: 2009-04-10 10:59:10

> Each one of them supports #pragma once. Is there any reason to wrap
> this pragma within #ifdefs? Are there any compilers out there today
> that
> don't support this #pragma?

> Could we change this coding pattern so that it no longer looks like
> is being selfish?
[Edouard A.]

In addition #pragma once may be faster than #ifndef/#endif because the
compiler is not even going to open the file a second time to parse the

ICC does support #pragma once as well.


Boost list run by bdawes at, gregod at, cpdaniel at, john at