Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/projects/SelfTest/IntrospectiveTests/String.tests.cpp
diff options
context:
space:
mode:
authorZhe Feng2026-07-27 20:05:53 +0800
committerZhe Feng2026-07-27 20:08:43 +0800
commitc002f18535880a18cdaa7304af02cdfd5990279e (patch)
tree5561c33d0f89e2cf249b475a625a2da6f4144d64 /projects/SelfTest/IntrospectiveTests/String.tests.cpp
parentee1450f268dfd5c13aa8670ba97e93cabaf2e15d (diff)
downloadcatch3-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.cpp2
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);