From 9208f9f729e58ddc22258ff26cefd78b90504c9c Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Sat, 20 Oct 2018 23:07:15 +0200 Subject: [PATCH] push_back of combined element instead of emplace_back in a list --- pc_container.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pc_container.hh b/pc_container.hh index 406649c..e59d2cd 100644 --- a/pc_container.hh +++ b/pc_container.hh @@ -43,7 +43,7 @@ public: void insert(Pdata* pd) { - c.emplace_back(pd, nullptr); + c.push_back({ pd, nullptr }); changed.push_back( c.back() ); }