How can I disable all MSVC warnings that come from the boost library?
I know I can disable specific warnings where they occur etc… but it clutters my code and if I use boost macros then they don’t seem to work. I would like to have a simple way to tell my compiler to not give me warnings about boost. Is this possible?
On a secondary note, I’m a bit surprised that the boost library doesn’t disable all these warnings internally so that we users can use it “out of the box”.
They try extremely hard to avoid warnings, but some compilers warn for code that is formally correct, just a bit “suspicious”. If you change the code to silence the warning, another compiler might warn for that code!
There is a warning policy for Boost code and various compilers
https://svn.boost.org/trac/boost/wiki/Guidelines/WarningsGuidelines
They are also particularly careful not to disable warnings, because you might have some parts of your code where the warning is actually correct. If Boost disables the warning, you might not find the errors in your code!