Skip to content

Commit

Permalink
Pass big parameter by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
carlesfernandez committed Dec 29, 2024
1 parent 6757adf commit deb127e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithms/PVT/libs/rtcm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit deb127e

Please sign in to comment.