boost_no_cxx17_hdr_variant.ipp 821 B

1234567891011121314151617181920212223242526272829303132
  1. // (C) Copyright John Maddock 2019
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/config for more information.
  6. // MACRO: BOOST_NO_CXX17_HDR_VARIANT
  7. // TITLE: C++17 header <variant> unavailable
  8. // DESCRIPTION: The standard library does not supply C++17 header <variant>
  9. #include <variant>
  10. namespace boost_no_cxx17_hdr_variant {
  11. int test()
  12. {
  13. using std::variant;
  14. using std::visit;
  15. using std::holds_alternative;
  16. using std::get;
  17. using std::get_if;
  18. using std::monostate;
  19. using std::bad_variant_access;
  20. using std::variant_size;
  21. using std::variant_alternative;
  22. using std::variant_npos;
  23. return 0;
  24. }
  25. }