Added StringRef constructor that captures string literal size at compile time

This commit is contained in:
Phil Nash
2017-11-20 16:33:05 +00:00
parent f36817ef83
commit 4353614df7
3 changed files with 13 additions and 9 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
namespace {
// Report the error condition
void reportFatal( char const * const message ) {
Catch::getCurrentContext().getResultCapture()->handleFatalErrorCondition( message );
Catch::getCurrentContext().getResultCapture()->handleFatalErrorCondition( Catch::StringRef::fromRaw( message ) );
}
}