
27 Jun
2011
27 Jun
'11
4:59 p.m.
[Mateusz Loskot]
Is location of #pragma relevant? Meaning, having #pragma nested in #ifndef include guard vs. placing it in outer scope, makes difference or not?
VC doesn't care where the #pragma once is, but as I recall, other compilers care where the #ifndef is - they prefer it to be on the outside of everything else, except comments. Stephan T. Lavavej Visual C++ Libraries Developer