Skip to content

Commit 636a013

Browse files
committed
Conditional include msgpack::variant.
It uses boost::variant. boost::variant requires boost::tyoe_index. boost::type index has dropped C++03 support.
1 parent 22f6fa1 commit 636a013

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

include/msgpack/type.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@
7373

7474
#if !defined(MSGPACK_NO_BOOST)
7575
#include "adaptor/boost/fusion.hpp"
76+
77+
#if !defined(MSGPACK_USE_CPP03)
7678
#include "adaptor/boost/msgpack_variant.hpp"
79+
#endif // !defined(MSGPACK_USE_CPP03)
80+
7781
#include "adaptor/boost/optional.hpp"
7882
#include "adaptor/boost/string_ref.hpp"
7983
#include "adaptor/boost/string_view.hpp"

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ LIST (APPEND check_PROGRAMS
88
boost_optional.cpp
99
boost_string_ref.cpp
1010
boost_string_view.cpp
11-
boost_variant.cpp
1211
buffer.cpp
1312
carray.cpp
1413
cases.cpp
@@ -43,6 +42,7 @@ ENDIF ()
4342

4443
IF (MSGPACK_CXX11 OR MSGPACK_CXX14 OR MSGPACK_CXX17 OR MSGPACK_CXX20)
4544
LIST (APPEND check_PROGRAMS
45+
boost_variant.cpp
4646
iterator_cpp11.cpp
4747
msgpack_cpp11.cpp
4848
reference_cpp11.cpp

0 commit comments

Comments
 (0)