diff options
| author | Martin Hořeňovský | 2026-07-28 11:53:18 +0200 |
|---|---|---|
| committer | GitHub | 2026-07-28 11:53:18 +0200 |
| commit | 9712bc8fe569b10b033b4d753c21658397fa17de (patch) | |
| tree | 5561c33d0f89e2cf249b475a625a2da6f4144d64 /include/internal/catch_stringref.h | |
| parent | ee1450f268dfd5c13aa8670ba97e93cabaf2e15d (diff) | |
| parent | c002f18535880a18cdaa7304af02cdfd5990279e (diff) | |
| download | catch3-v2.x.tar.gz | |
Merge pull request #3184 from ZheFeng7110/fix/v2.x-user_literal-warnv2.x
(v2.x) Remove space in user-defined literal operators to fix MSVC C4996 warning
Diffstat (limited to 'include/internal/catch_stringref.h')
| -rw-r--r-- | include/internal/catch_stringref.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/internal/catch_stringref.h b/include/internal/catch_stringref.h index dc2e748c..15c39813 100644 --- a/include/internal/catch_stringref.h +++ b/include/internal/catch_stringref.h @@ -92,12 +92,12 @@ namespace Catch { auto operator << ( std::ostream& os, StringRef const& sr ) -> std::ostream&; - 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 ); } |