diff options
| author | Martin Hořeňovský | 2023-02-10 21:32:57 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2023-02-10 21:36:04 +0100 |
| commit | 4aa88299af4d4d7dec18a1b6cf314a4b03d7567c (patch) | |
| tree | c8efd9361928daab9d95d196bfe3b2caadd6c015 /src | |
| parent | 76cdaa3b51274a748dd971313c8692c3ce967477 (diff) | |
| download | catch3-4aa88299af4d4d7dec18a1b6cf314a4b03d7567c.tar.gz | |
Preconstruct error message in RunContext::handleIncomplete
Diffstat (limited to 'src')
| -rw-r--r-- | src/catch2/internal/catch_run_context.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_run_context.cpp b/src/catch2/internal/catch_run_context.cpp index fe170344..cac6de5c 100644 --- a/src/catch2/internal/catch_run_context.cpp +++ b/src/catch2/internal/catch_run_context.cpp @@ -642,10 +642,11 @@ namespace Catch { void RunContext::handleIncomplete( AssertionInfo const& info ) { + using namespace std::string_literals; m_lastAssertionInfo = info; AssertionResultData data( ResultWas::ThrewException, LazyExpression( false ) ); - data.message = "Exception translation was disabled by CATCH_CONFIG_FAST_COMPILE"; + data.message = "Exception translation was disabled by CATCH_CONFIG_FAST_COMPILE"s; AssertionResult assertionResult{ info, CATCH_MOVE( data ) }; assertionEnded( assertionResult ); } |