From deb127e177654435294322f6f2c2cec2b0b6a952 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sun, 29 Dec 2024 23:59:27 +0100 Subject: [PATCH] Pass big parameter by reference --- src/algorithms/PVT/libs/rtcm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);