From fd91561734ca8f813eaed24f7d9a4abcd9d0b68c Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sat, 16 Sep 2023 02:17:06 +0300 Subject: [PATCH] Update test_circular_q.cpp --- tests/test_circular_q.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_circular_q.cpp b/tests/test_circular_q.cpp index 67fad266..01f5b105 100644 --- a/tests/test_circular_q.cpp +++ b/tests/test_circular_q.cpp @@ -26,7 +26,7 @@ TEST_CASE("test_rolling", "[circular_q]") for (size_t i = 0; i < q_size + 2; i++) { - q.push_back(size_t{i}); // arg to push_back must be r value + q.push_back(std::move(i)); // arg to push_back must be r value } REQUIRE(q.size() == q_size);