Skip to content

Commit

Permalink
Conditional include msgpack::variant.
Browse files Browse the repository at this point in the history
It uses boost::variant. boost::variant requires boost::tyoe_index.
boost::type index has dropped C++03 support.
  • Loading branch information
redboltz committed Aug 6, 2024
1 parent 22f6fa1 commit 636a013
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions include/msgpack/type.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 636a013

Please sign in to comment.