Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal
diff options
context:
space:
mode:
authorMartin Hořeňovský2023-02-10 21:32:57 +0100
committerMartin Hořeňovský2023-02-10 21:36:04 +0100
commit4aa88299af4d4d7dec18a1b6cf314a4b03d7567c (patch)
treec8efd9361928daab9d95d196bfe3b2caadd6c015 /src/catch2/internal
parent76cdaa3b51274a748dd971313c8692c3ce967477 (diff)
downloadcatch3-4aa88299af4d4d7dec18a1b6cf314a4b03d7567c.tar.gz
Preconstruct error message in RunContext::handleIncomplete
Diffstat (limited to 'src/catch2/internal')
-rw-r--r--src/catch2/internal/catch_run_context.cpp3
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 );
}