
On Thursday, October 28, 2010 11:02 AM, Paul A. Bristow wrote:
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of gast128 Sent: Thursday, October 28, 2010 3:27 PM To: boost-users@lists.boost.org Subject: [Boost-users] warnings with VS2008 and Boost 1.44
Dear all,
we try to use Boost 1.44 with our applications and we got the follow warnings:
-gamma.hpp(1053) : warning C4701 -token_functions.hpp(220) : warning C4127 -find_format_store.hpp(74) : warning C4100
We have here a 'treat warning as error' polciy, so in effect we may have to add an extra header for some libraries which disables the warning locally
and then includes the Boost library header (thru the #pragma push / pop mechanism).
Sorry about this. Getting warning free is not as easy as it looks (or should be).
(I note we have tried to quiet warnings already, but it looks as though these are not working (for you at least), for reasons not yet clear to me).
If you mail me (privately?) the full error messages you are getting, I will try to get these push'n'pop quieted - but not until 1.46 :-(
All these warnings look spurious, and I think you can safely enclose and disable push'n'pop, as you suggest.
Fair warning about Visual Studio: according to the help file at http://msdn.microsoft.com/en-us/library/2c8f766e%28v=VS.90%29.aspx
The compiler only supports up to 56 #pragma warning statements in a compiland.
It is my experience that the compiler will ignore any "#pragma warning" lines after this limit has been reached, and it can be reached a lot faster than you might expect.