// DisableSTLWarnings.h // // Include this file to disable annoying warnings // generated by Microsoft's STL headers. // How to use this file: // // ... Top of your file ... // // #pragma warning( push, 1 ) // #include "DisableSTLWarnings.h" // ... Include troublesome STL headers here ... // #pragma warning( pop ) // // ... Include other files here ... // // ... Rest of your file ... #pragma warning( disable: 4018 ) // signed/unsigned mismatch in comparison op #pragma warning( disable: 4100 ) // unref'd formal param #pragma warning( disable: 4146 ) // unary minus applied to unsigned #pragma warning( disable: 4244 ) // integer conversion to smaller type #pragma warning( disable: 4284 ) // iterator::operator->() return type when using ptr template type #pragma warning( disable: 4511 ) // could not generate copy constructor #pragma warning( disable: 4512 ) // could not generate assignment op #pragma warning( disable: 4663 ) // deprecated template specialization syntax #pragma warning( disable: 4710 ) // inlined function not inlined #pragma warning( disable: 4786 ) // long templated symbol names