Introduce "C-namespaced" UDL for StringRef

This commit is contained in:
Martin Hořeňovský 2018-07-23 13:19:21 +02:00
parent 78804ea304
commit f7f592dfc9
1 changed files with 4 additions and 0 deletions

View File

@ -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