diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/support/insert_ordered.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/support/insert_ordered.h b/src/support/insert_ordered.h index 12c98a3b2..6b0f54968 100644 --- a/src/support/insert_ordered.h +++ b/src/support/insert_ordered.h @@ -96,7 +96,7 @@ template<typename Key, typename T> struct InsertOrderedMap { const_iterator begin() const { return List.begin(); } const_iterator end() const { return List.end(); } - std::pair<iterator, bool> insert(std::pair<const Key, T>& kv) { + std::pair<iterator, bool> insert(const std::pair<const Key, T>& kv) { // Try inserting with a placeholder list iterator. auto inserted = Map.insert({kv.first, List.end()}); if (inserted.second) { |