|
Boost : |
Subject: Re: [boost] [#pragma once]
From: Klaim - Joël Lamotte (mjklaim_at_[hidden])
Date: 2012-11-18 12:21:39
As additional data to this discussion, it have been pointed in an answer
there :
http://stackoverflow.com/questions/787533/is-pragma-once-a-safe-include-guard
That :
"#pragma once does have one drawback (other than being non-standard) and
that is if you have the same file in different locations (we have this
because our build system copies files around) then the compiler will think
these are different files."
Which I don't know will help discuss this but might be relevant for such a
big code base as boost libraries.
Joel Lamotte
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk