diff options
| author | Zhe Feng | 2026-07-27 20:05:53 +0800 |
|---|---|---|
| committer | Zhe Feng | 2026-07-27 20:08:43 +0800 |
| commit | c002f18535880a18cdaa7304af02cdfd5990279e (patch) | |
| tree | 5561c33d0f89e2cf249b475a625a2da6f4144d64 /projects/SelfTest/IntrospectiveTests/String.tests.cpp | |
| parent | ee1450f268dfd5c13aa8670ba97e93cabaf2e15d (diff) | |
| download | catch3-c002f18535880a18cdaa7304af02cdfd5990279e.tar.gz | |
Fix MSVC deprecation warning for user-defined literals
Remove the space between "" and the suffix in user-defined literal
operators (e.g. operator ""_a instead of operator "" _a) to avoid
MSVC deprecation warning C5311.
Diffstat (limited to 'projects/SelfTest/IntrospectiveTests/String.tests.cpp')
| -rw-r--r-- | projects/SelfTest/IntrospectiveTests/String.tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/projects/SelfTest/IntrospectiveTests/String.tests.cpp b/projects/SelfTest/IntrospectiveTests/String.tests.cpp index 3a308657..4c1e1e93 100644 --- a/projects/SelfTest/IntrospectiveTests/String.tests.cpp +++ b/projects/SelfTest/IntrospectiveTests/String.tests.cpp @@ -141,7 +141,7 @@ TEST_CASE("StringRef at compilation time", "[Strings][StringRef][constexpr]") { STATIC_REQUIRE(sr1.size() == 3); STATIC_REQUIRE(sr1.isNullTerminated()); - using Catch::operator"" _sr; + using Catch::operator""_sr; constexpr auto sr2 = ""_sr; STATIC_REQUIRE(sr2.empty()); STATIC_REQUIRE(sr2.size() == 0); |