Suppress msvc waring "conditional expression is constant"

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

No files matched your search

+5 -3
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
+5 -3
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