Fixed warning in tests

This commit is contained in:
Gabi Melman 2023-09-24 00:34:46 +03:00
parent 7d3b5a1b10
commit 9448d74495

View File

@ -26,7 +26,8 @@ TEST_CASE("test_rolling", "[circular_q]")
for (size_t i = 0; i < q_size + 2; i++) 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); REQUIRE(q.size() == q_size);