Disable C4244 in scoped_enum.cpp, underlying_type.cpp

This commit is contained in:
Peter Dimov 2021-11-01 03:58:37 +02:00
parent 964ef98eee
commit 9f2cdfa7d2
2 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,10 @@
#include <boost/core/scoped_enum.hpp>
#include <boost/core/lightweight_test.hpp>
#if defined(_MSC_VER)
# pragma warning(disable: 4244) // conversion from enum_type to underlying_type
#endif
BOOST_SCOPED_ENUM_DECLARE_BEGIN(namespace_enum1)
{
value0,

View File

@ -18,6 +18,10 @@
#include <boost/core/is_same.hpp>
#include <boost/config.hpp>
#if defined(_MSC_VER)
# pragma warning(disable: 4244) // conversion from enum_type to underlying_type
#endif
BOOST_SCOPED_ENUM_UT_DECLARE_BEGIN(emulated_enum, unsigned char)
{
value0,