mirror of https://github.com/oxen-io/oxen-mq.git
Add const
This commit is contained in:
parent
cdd21a9e81
commit
377932607c
|
@ -265,7 +265,7 @@ public:
|
||||||
std::is_same_v<typename BadUnorderedMap::iterator, ForwardIt> ||
|
std::is_same_v<typename BadUnorderedMap::iterator, ForwardIt> ||
|
||||||
std::is_same_v<typename BadUnorderedMap::const_iterator, ForwardIt>));
|
std::is_same_v<typename BadUnorderedMap::const_iterator, ForwardIt>));
|
||||||
while (from != to) {
|
while (from != to) {
|
||||||
auto& [k, v] = *from++;
|
const auto& [k, v] = *from++;
|
||||||
append_impl(k);
|
append_impl(k);
|
||||||
check_incrementing_key(k.size());
|
check_incrementing_key(k.size());
|
||||||
append_impl(v);
|
append_impl(v);
|
||||||
|
|
Loading…
Reference in New Issue