mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 21:05:39 +02:00
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.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user