Boost logo

Boost :

Subject: Re: [boost] [#pragma once]
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2009-04-10 18:43:13


On Fri, Apr 10, 2009 at 3:34 PM, Sid Sacek <ssacek_at_[hidden]> wrote:
> My opinion is that the boost headers can happily contain the following
> code:
>
>     #ifndef __HEADER_FILE_GUARD__
>     #define __HEADER_FILE_GUARD__
>     #pragma once
>     ...
>     #endif

Strictly speaking, if we don't count the #pragma which can do anything
at all, the code above contains exactly one standard line (the one
with the #endif) since __HEADER_FILE_GUARD__ is illegal identifier in
user code. :)

But that aside, what are you trying to achieve with #pragma once?

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


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