diff options
| author | Martin Hořeňovský | 2021-08-19 19:06:23 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-08-19 19:15:46 +0200 |
| commit | 4113a12c69809d72a3d92345ec47ccc5a0bf141c (patch) | |
| tree | 0f2ab58a6690a005536ae292d2aa6fbccf9cec31 /src/catch2/internal | |
| parent | edad4d0af7a91693448bbf884236ea6ff2a4bd15 (diff) | |
| download | catch3-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.hpp | 4 |
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 ); } |