boost_no_cxx17_hdr_optional.ipp 591 B

1234567891011121314151617181920212223
  1. // (C) Copyright John Maddock 2018
  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_OPTIONAL
  7. // TITLE: C++17 header <optional> unavailable
  8. // DESCRIPTION: The standard library does not supply C++17 header <optional>
  9. #include <optional>
  10. namespace boost_no_cxx17_hdr_optional {
  11. int test()
  12. {
  13. using std::optional;
  14. return 0;
  15. }
  16. }