diff options
| author | Martin Hořeňovský | 2023-10-28 21:34:53 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2023-10-28 21:35:03 +0200 |
| commit | 6ebc013b8cfe438a3a397817ad662db34a978238 (patch) | |
| tree | 2e19e07413df1f273bd936036000107d37e59472 /tests/SelfTest/IntrospectiveTests/String.tests.cpp | |
| parent | 966d3615517c2502b565c25c25e22003efa1e759 (diff) | |
| download | catch3-6ebc013b8cfe438a3a397817ad662db34a978238.tar.gz | |
Fix UDL definitions for C++23
Technically, the declaration should not have a space between
the quotes and the underscore, because `_foo` is a reserved
identifier, but `""_foo` is not. In general it works, but newer
Clang versions warn about this, because WG21 wants to deprecate
and later remove this form completely.
Diffstat (limited to 'tests/SelfTest/IntrospectiveTests/String.tests.cpp')
| -rw-r--r-- | tests/SelfTest/IntrospectiveTests/String.tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/SelfTest/IntrospectiveTests/String.tests.cpp b/tests/SelfTest/IntrospectiveTests/String.tests.cpp index 7a0b3b4a..43c58b49 100644 --- a/tests/SelfTest/IntrospectiveTests/String.tests.cpp +++ b/tests/SelfTest/IntrospectiveTests/String.tests.cpp @@ -177,7 +177,7 @@ TEST_CASE("StringRef at compilation time", "[Strings][StringRef][constexpr]") { STATIC_REQUIRE_FALSE(sr1.empty()); STATIC_REQUIRE(sr1.size() == 3); - using Catch::operator"" _sr; + using Catch::operator""_sr; constexpr auto sr2 = ""_sr; STATIC_REQUIRE(sr2.empty()); STATIC_REQUIRE(sr2.size() == 0); |