Skip to content

Commit

Permalink
changes to serialization of variants to support boost/variant, boost/…
Browse files Browse the repository at this point in the history
…variant2 and std::variant
  • Loading branch information
robertramey committed Mar 23, 2024
1 parent 2e044c7 commit a32906b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions include/boost/serialization/variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,11 @@
// Boost Variant2 supports all C++ versions back to C++11
#if BOOST_CXX_VERSION >= 201103L
#include <boost/variant2/variant.hpp>
#include <type_traits>
#endif

// Boost Variant2 supports all C++ versions back to C++11
// std::variant supports all C++ versions back to C++11
#ifndef BOOST_NO_CXX17_HDR_VARIANT
#include <variant>
//#include <type_traits>
#endif

#include <boost/archive/archive_exception.hpp>
Expand Down
2 changes: 1 addition & 1 deletion include/boost/serialization/variant2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
//
// See http://www.boost.org for updates, documentation, and revision history.
//
// Widely inspired form boost::variant serialization
// Widely inspired from boost::variant serialization
//

#include <boost/serialization/throw_exception.hpp>
Expand Down
4 changes: 2 additions & 2 deletions performance/profile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ then
echo " threading=single,multi"
echo " -sBOOST_ARCHIVE_LIST=<archive name>"
else
bjam --dump-tests variant=profile preserve-test-targets=on $@ >bjam.log 2>&1
process_jam_log --v2 <bjam.log
b2 --dump-tests variant=profile preserve-test-targets=on $@ >b2.log 2>&1
process_jam_log --v2 <b2ls.log

# for each test directory

Expand Down

0 comments on commit a32906b

Please sign in to comment.