mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-11-04 20:31:02 +01:00
Conditional include msgpack::variant.
It uses boost::variant. boost::variant requires boost::tyoe_index. boost::type index has dropped C++03 support.
This commit is contained in:
@@ -73,7 +73,11 @@
|
||||
|
||||
#if !defined(MSGPACK_NO_BOOST)
|
||||
#include "adaptor/boost/fusion.hpp"
|
||||
|
||||
#if !defined(MSGPACK_USE_CPP03)
|
||||
#include "adaptor/boost/msgpack_variant.hpp"
|
||||
#endif // !defined(MSGPACK_USE_CPP03)
|
||||
|
||||
#include "adaptor/boost/optional.hpp"
|
||||
#include "adaptor/boost/string_ref.hpp"
|
||||
#include "adaptor/boost/string_view.hpp"
|
||||
|
||||
@@ -8,7 +8,6 @@ LIST (APPEND check_PROGRAMS
|
||||
boost_optional.cpp
|
||||
boost_string_ref.cpp
|
||||
boost_string_view.cpp
|
||||
boost_variant.cpp
|
||||
buffer.cpp
|
||||
carray.cpp
|
||||
cases.cpp
|
||||
@@ -43,6 +42,7 @@ ENDIF ()
|
||||
|
||||
IF (MSGPACK_CXX11 OR MSGPACK_CXX14 OR MSGPACK_CXX17 OR MSGPACK_CXX20)
|
||||
LIST (APPEND check_PROGRAMS
|
||||
boost_variant.cpp
|
||||
iterator_cpp11.cpp
|
||||
msgpack_cpp11.cpp
|
||||
reference_cpp11.cpp
|
||||
|
||||
Reference in New Issue
Block a user