From 9448d744952d04033dafc027c6c12dd48d4f1e33 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sun, 24 Sep 2023 00:34:46 +0300 Subject: [PATCH] Fixed warning in tests --- tests/test_circular_q.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_circular_q.cpp b/tests/test_circular_q.cpp index 01f5b105..6a2ffa72 100644 --- a/tests/test_circular_q.cpp +++ b/tests/test_circular_q.cpp @@ -26,7 +26,8 @@ TEST_CASE("test_rolling", "[circular_q]") for (size_t i = 0; i < q_size + 2; i++) { - q.push_back(std::move(i)); // arg to push_back must be r value + auto val = i; + q.push_back(std::move(val)); // arg to push_back must be r value } REQUIRE(q.size() == q_size);