diff --git a/oxenmq/bt_producer.h b/oxenmq/bt_producer.h index 5222cde..cf866c1 100644 --- a/oxenmq/bt_producer.h +++ b/oxenmq/bt_producer.h @@ -265,7 +265,7 @@ public: std::is_same_v || std::is_same_v)); while (from != to) { - auto& [k, v] = *from++; + const auto& [k, v] = *from++; append_impl(k); check_incrementing_key(k.size()); append_impl(v);