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()); } }