|
29 | 29 | #include "test_common/create_basic.hpp" |
30 | 30 | #include "test_common/printing.hpp" |
31 | 31 |
|
32 | | -#ifdef __cpp_lib_string_view |
| 32 | +#ifndef BOOST_NO_CXX17_HDR_STRING_VIEW |
33 | 33 | #include <string_view> |
34 | 34 | #endif |
35 | | -#ifdef __cpp_lib_optional |
| 35 | +#ifndef BOOST_NO_CXX17_HDR_OPTIONAL |
36 | 36 | #include <optional> |
37 | 37 | #endif |
38 | 38 |
|
@@ -278,7 +278,7 @@ BOOST_AUTO_TEST_CASE(string_view_) |
278 | 278 | BOOST_TEST(format_sql(opts, identifier_fmt, string_view("abc")) == "SELECT `abc` FROM myt"); |
279 | 279 | } |
280 | 280 |
|
281 | | -#ifdef __cpp_lib_string_view |
| 281 | +#ifndef BOOST_NO_CXX17_HDR_STRING_VIEW |
282 | 282 | BOOST_AUTO_TEST_CASE(std_string_view) |
283 | 283 | { |
284 | 284 | BOOST_TEST(format_sql(opts, single_fmt, std::string_view("abc")) == "SELECT 'abc';"); |
@@ -486,7 +486,7 @@ BOOST_AUTO_TEST_CASE(boost_optional) |
486 | 486 | BOOST_TEST(format_sql(opts, single_fmt, co_clval) == "SELECT 'abdef';"); |
487 | 487 | } |
488 | 488 |
|
489 | | -#ifdef __cpp_lib_optional |
| 489 | +#ifndef BOOST_NO_CXX17_HDR_OPTIONAL |
490 | 490 | BOOST_AUTO_TEST_CASE(std_optional) |
491 | 491 | { |
492 | 492 | std::optional<std::string> o_lval("abc"); |
@@ -681,7 +681,7 @@ void optional_error_test() |
681 | 681 |
|
682 | 682 | BOOST_AUTO_TEST_CASE(boost_optional_error) { optional_error_test<boost::optional>(); } |
683 | 683 |
|
684 | | -#ifdef __cpp_lib_optional |
| 684 | +#ifndef BOOST_NO_CXX17_HDR_OPTIONAL |
685 | 685 | BOOST_AUTO_TEST_CASE(std_optional_error) { optional_error_test<std::optional>(); } |
686 | 686 | #endif |
687 | 687 |
|
|
0 commit comments