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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-08-19 19:06:23 +0200
committerMartin Hořeňovský2021-08-19 19:15:46 +0200
commit4113a12c69809d72a3d92345ec47ccc5a0bf141c (patch)
tree0f2ab58a6690a005536ae292d2aa6fbccf9cec31 /src/catch2/internal
parentedad4d0af7a91693448bbf884236ea6ff2a4bd15 (diff)
downloadcatch3-4113a12c69809d72a3d92345ec47ccc5a0bf141c.tar.gz
Fix Wreserved-identifier for UDLs in Catch2
See #578
Diffstat (limited to 'src/catch2/internal')
-rw-r--r--src/catch2/internal/catch_stringref.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/internal/catch_stringref.hpp b/src/catch2/internal/catch_stringref.hpp
index fed35b16..17f5d07d 100644
--- a/src/catch2/internal/catch_stringref.hpp
+++ b/src/catch2/internal/catch_stringref.hpp
@@ -98,12 +98,12 @@ namespace Catch {
};
- constexpr auto operator "" _sr( char const* rawChars, std::size_t size ) noexcept -> StringRef {
+ constexpr auto operator ""_sr( char const* rawChars, std::size_t size ) noexcept -> StringRef {
return StringRef( rawChars, size );
}
} // namespace Catch
-constexpr auto operator "" _catch_sr( char const* rawChars, std::size_t size ) noexcept -> Catch::StringRef {
+constexpr auto operator ""_catch_sr( char const* rawChars, std::size_t size ) noexcept -> Catch::StringRef {
return Catch::StringRef( rawChars, size );
}