Boost logo

Boost :

Subject: Re: [boost] Official warnings policy?
From: Sid Sacek (ssacek_at_[hidden])
Date: 2009-11-04 18:07:40


-----Original Message-----
From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]] On Behalf Of Simonson, Lucanus J
Sent: Wednesday, November 04, 2009 2:22 PM
To: boost_at_[hidden]
Subject: Re: [boost] Official warnings policy?

>> If only it were true that pragmas were easy to use to disable
>> warnings in templates. Library users don't tolerate #pragma
>> waring disable in header files that change the warning policy
>> for their own code.

#pragma warnings are usually done correctly if they're pushed then popped...

Example:

#pragma warning( push )
#pragma warning( disable: 4244 4793 4996 )

class foobar
{
};

#pragma warning( pop )


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