mirror of
https://github.com/boostorg/core.git
synced 2025-09-26 09:10:55 +02:00
Disable C4244 in scoped_enum.cpp, underlying_type.cpp
This commit is contained in:
@@ -15,6 +15,10 @@
|
|||||||
#include <boost/core/scoped_enum.hpp>
|
#include <boost/core/scoped_enum.hpp>
|
||||||
#include <boost/core/lightweight_test.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)
|
BOOST_SCOPED_ENUM_DECLARE_BEGIN(namespace_enum1)
|
||||||
{
|
{
|
||||||
value0,
|
value0,
|
||||||
|
@@ -18,6 +18,10 @@
|
|||||||
#include <boost/core/is_same.hpp>
|
#include <boost/core/is_same.hpp>
|
||||||
#include <boost/config.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)
|
BOOST_SCOPED_ENUM_UT_DECLARE_BEGIN(emulated_enum, unsigned char)
|
||||||
{
|
{
|
||||||
value0,
|
value0,
|
||||||
|
Reference in New Issue
Block a user