Changes between Version 6 and Version 7 of Guidelines/WarningsGuidelines


Ignore:
Timestamp:
Oct 29, 2010, 5:34:31 PM (12 years ago)
Author:
Paul A. Bristow
Comment:

Add note about limit to number of push'n'pops.

Legend:

Unmodified
Added
Removed
Modified
  • Guidelines/WarningsGuidelines

    v6 v7  
    160160to the package as possible so that users can still get warnings from *their code*.
    161161
    162 For MSVC, this involves pushing to save the current warning state, disabling the warning, and later popping to restore (abbreviated as ''push'n'pop'').
     162For MSVC, this involves pushing to save the current warning state, disabling the warning, and later popping to restore (abbreviated as ''push'n'pop''). See [@http://msdn.microsoft.com/en-us/library/2c8f766e%28v=VS.100%29.aspx warnings]
     163
     164'''BUT''' there is a limit to how many times (56) this can be used, so it is always much better to 'fix' than to suppress warnings.
     165
     166"The compiler only supports up to 56 #pragma warning statements in a compiland"
     167
     168This limit may be reached in practice with Boost code.
     169
    163170{{{
    164171#if defined(_MSC_VER)