diff --git a/src/TestCPPTestCase.cpp b/src/TestCPPTestCase.cpp index d13f0c5..9801f5d 100644 --- a/src/TestCPPTestCase.cpp +++ b/src/TestCPPTestCase.cpp @@ -119,7 +119,7 @@ namespace TestCPP { TestCase::TestCaseOutCompareOptions opt) { this->notifyTestPassed = testPassedMessage; - this->test = testFn; + this->test = std::move(testFn); this->testName = name;