From 081fa0e3d39cd4b79669255eb70b145518b7e369 Mon Sep 17 00:00:00 2001 From: mxaddict Date: Sun, 24 Dec 2023 04:45:01 +0800 Subject: [PATCH] Updated src/test/blsct/building_block/imp_inner_prod_arg_tests.cpp to use emplace_back instead of push_back --- src/test/blsct/building_block/imp_inner_prod_arg_tests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/blsct/building_block/imp_inner_prod_arg_tests.cpp b/src/test/blsct/building_block/imp_inner_prod_arg_tests.cpp index 4c5c6ea7edaaf..f71a331f7c8e1 100644 --- a/src/test/blsct/building_block/imp_inner_prod_arg_tests.cpp +++ b/src/test/blsct/building_block/imp_inner_prod_arg_tests.cpp @@ -56,9 +56,9 @@ BOOST_AUTO_TEST_CASE(test_exec_ypow_loop) std::vector act; ImpInnerProdArg::LoopWithYPows(3, y, [&](const size_t& i, const Scalar& y_pow, const Scalar& y_inv_pow) { - act.push_back(Scalar(i)); - act.push_back(y_pow); - act.push_back(y_inv_pow); + act.emplace_back(Scalar(i)); + act.emplace_back(y_pow); + act.emplace_back(y_inv_pow); } ); Scalar zero = Scalar(0);