diff options
-rw-r--r-- | site/test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/site/test.cpp b/site/test.cpp index bcff64b..eba1572 100644 --- a/site/test.cpp +++ b/site/test.cpp @@ -23,8 +23,9 @@ public: { BOOST_TEST_INFO(fn); if (fn == "good.txt") { - return {std::make_shared<SearchHit>(1, 1, "file:///some/file/path"), - std::make_shared<SearchHit>(1, 1, "file:///some/other/path")}; + auto a = std::make_shared<SearchHit>(1, 1, "file:///some/file/path"), + b = std::make_shared<SearchHit>(1, 1, "file:///some/other/path"); + return {std::move(a), std::move(b)}; } return {}; } |