Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualHodgman

Posted 05 February 2013 - 04:48 PM

Seriously, use both. The pragma avoids token clashes, and the include guards serve as a fallback on the exceedingly rare case you're compiling on an implementation that doesn't support it.

But, in the fall-back case, the pragma doesn't avoid token clashes... So either there's no point having the pragma in the first place, or, you don't really have a fallback case so there's no point in having the guards?


#1Hodgman

Posted 05 February 2013 - 04:45 PM

Seriously, use both. The pragma avoids token clashes, and the include guards serve as a fallback on the exceedingly rare case you're compiling on an implementation that doesn't support it.

But, in the fall-back case, the pragma doesn't avoid token clashes, so there's no point having it in the first place?


PARTNERS