diff --git a/test/scoped_enum.cpp b/test/scoped_enum.cpp index 3d9afa1..3befebe 100644 --- a/test/scoped_enum.cpp +++ b/test/scoped_enum.cpp @@ -15,6 +15,10 @@ #include #include +#if defined(_MSC_VER) +# pragma warning(disable: 4244) // conversion from enum_type to underlying_type +#endif + BOOST_SCOPED_ENUM_DECLARE_BEGIN(namespace_enum1) { value0, diff --git a/test/underlying_type.cpp b/test/underlying_type.cpp index 0823f58..34f3940 100644 --- a/test/underlying_type.cpp +++ b/test/underlying_type.cpp @@ -18,6 +18,10 @@ #include #include +#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,