From 9b64a2691cea595e417df2803af27cf7f2468c17 Mon Sep 17 00:00:00 2001 From: burgholzer Date: Wed, 27 Nov 2024 08:34:44 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20`emplace=5Fback`=20instead=20of?= =?UTF-8?q?=20`push=5Fback`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: burgholzer --- include/mqt-core/ir/QuantumComputation.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mqt-core/ir/QuantumComputation.hpp b/include/mqt-core/ir/QuantumComputation.hpp index 2cc9a3ccf..4ea9c5d13 100644 --- a/include/mqt-core/ir/QuantumComputation.hpp +++ b/include/mqt-core/ir/QuantumComputation.hpp @@ -175,7 +175,7 @@ class QuantumComputation { for (decltype(RegisterType::second) i = 0; i < reg.second.second.second; i++) { ss << reg.second.first << "[" << i << "]"; - regnames.push_back(std::make_pair(reg.second.first, ss.str())); + regnames.emplace_back(reg.second.first, ss.str()); ss.str(std::string()); } }