Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Introduce "C-namespaced" UDL for StringRef

Commit
f7f592dfc96086ddaaf77150b072adbca4627dc8
Author
Martin Hořeňovský ·
Parents
78804ea30416

Files · Download .tar.gz

Changes

 include/internal/catch_stringref.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/internal/catch_stringref.h b/include/internal/catch_stringref.h
index 757d70cc..05206b0b 100644
--- a/include/internal/catch_stringref.h
+++ b/include/internal/catch_stringref.h
@@ -127,4 +127,8 @@ namespace Catch {
 
 } // namespace Catch
 
+inline auto operator "" _catch_sr( char const* rawChars, std::size_t size ) noexcept -> Catch::StringRef {
+    return Catch::StringRef( rawChars, size );
+}
+
 #endif // CATCH_STRINGREF_H_INCLUDED