Suppress msvc waring "conditional expression is constant"

This commit is contained in:
Daniel James
2018-01-10 11:35:22 +00:00
parent d55c9565ab
commit dea525b2b7
2 changed files with 10 additions and 6 deletions

View File

@@ -27,9 +27,11 @@
#if defined(BOOST_MSVC)
#pragma warning(push)
#if BOOST_MSVC >= 1400
#pragma warning(disable : 4396) // the inline specifier cannot be used when a
// friend declaration refers to a specialization
// of a function template
// conditional expression is constant
#pragma warning(disable : 4127)
// the inline specifier cannot be used when a friend declaration refers to a
// specialization of a function template
#pragma warning(disable : 4396)
#endif
#endif

View File

@@ -26,9 +26,11 @@
#if defined(BOOST_MSVC)
#pragma warning(push)
#if BOOST_MSVC >= 1400
#pragma warning(disable : 4396) // the inline specifier cannot be used when a
// friend declaration refers to a specialization
// of a function template
// conditional expression is constant
#pragma warning(disable : 4127)
// the inline specifier cannot be used when a friend declaration refers to a
// specialization of a function template
#pragma warning(disable : 4396)
#endif
#endif