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:
Takatoshi Kondo
2024-08-06 11:21:55 +09:00
parent 22f6fa1cd2
commit 636a0130ba
2 changed files with 5 additions and 1 deletions

View File

@@ -73,7 +73,11 @@
#if !defined(MSGPACK_NO_BOOST) #if !defined(MSGPACK_NO_BOOST)
#include "adaptor/boost/fusion.hpp" #include "adaptor/boost/fusion.hpp"
#if !defined(MSGPACK_USE_CPP03)
#include "adaptor/boost/msgpack_variant.hpp" #include "adaptor/boost/msgpack_variant.hpp"
#endif // !defined(MSGPACK_USE_CPP03)
#include "adaptor/boost/optional.hpp" #include "adaptor/boost/optional.hpp"
#include "adaptor/boost/string_ref.hpp" #include "adaptor/boost/string_ref.hpp"
#include "adaptor/boost/string_view.hpp" #include "adaptor/boost/string_view.hpp"

View File

@@ -8,7 +8,6 @@ LIST (APPEND check_PROGRAMS
boost_optional.cpp boost_optional.cpp
boost_string_ref.cpp boost_string_ref.cpp
boost_string_view.cpp boost_string_view.cpp
boost_variant.cpp
buffer.cpp buffer.cpp
carray.cpp carray.cpp
cases.cpp cases.cpp
@@ -43,6 +42,7 @@ ENDIF ()
IF (MSGPACK_CXX11 OR MSGPACK_CXX14 OR MSGPACK_CXX17 OR MSGPACK_CXX20) IF (MSGPACK_CXX11 OR MSGPACK_CXX14 OR MSGPACK_CXX17 OR MSGPACK_CXX20)
LIST (APPEND check_PROGRAMS LIST (APPEND check_PROGRAMS
boost_variant.cpp
iterator_cpp11.cpp iterator_cpp11.cpp
msgpack_cpp11.cpp msgpack_cpp11.cpp
reference_cpp11.cpp reference_cpp11.cpp