diff --git a/src/algorithms/PVT/libs/rtcm.h b/src/algorithms/PVT/libs/rtcm.h index 26223d8841..0d7996590a 100644 --- a/src/algorithms/PVT/libs/rtcm.h +++ b/src/algorithms/PVT/libs/rtcm.h @@ -831,7 +831,7 @@ class Rtcm [this, &msg]() { #else boost::asio::post(io_context_, - [this, msg]() { + [this, &msg]() { #endif bool write_in_progress = !write_msgs_.empty(); write_msgs_.push_back(msg);