From 5d1264e2b9092c1b6f6fa4766815901ea8e3ade9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Mon, 13 Jun 2022 15:06:58 +0200 Subject: [PATCH] Optimization: use a move_iterator --- src/EquationTags.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EquationTags.hh b/src/EquationTags.hh index 873b349e..1a2292c7 100644 --- a/src/EquationTags.hh +++ b/src/EquationTags.hh @@ -45,7 +45,7 @@ public: inline void add(int eqn, map<string, string> tags) { if (eqn_tags.contains(eqn)) - eqn_tags[eqn].insert(tags.begin(), tags.end()); + eqn_tags[eqn].insert(move_iterator{tags.begin()}, move_iterator{tags.end()}); else eqn_tags[eqn] = move(tags); } -- GitLab