1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-11-04 17:23:20 +00:00

Fixes for old GCC

This commit is contained in:
Carles Fernandez
2020-04-26 12:28:24 +02:00
parent 6de4d28ab1
commit c27622a738
11 changed files with 13 additions and 21 deletions

View File

@@ -135,12 +135,8 @@ rtl_tcp_signal_source_c::rtl_tcp_signal_source_c(const std::string &address,
// 6. Start reading
boost::asio::async_read(socket_, boost::asio::buffer(data_),
#if HAS_GENERIC_LAMBDA
[this](auto &&PH1, auto &&PH2) { handle_read(PH1, PH2); });
#else
boost::bind(&rtl_tcp_signal_source_c::handle_read,
this, _1, _2));
#endif
boost::bind(&rtl_tcp_signal_source_c::handle_read, this, _1, _2)); // NOLINT(modernize-avoid-bind)
boost::thread(
#if HAS_GENERIC_LAMBDA
[ObjectPtr = &io_context_] { ObjectPtr->run(); });
@@ -320,11 +316,7 @@ void rtl_tcp_signal_source_c::handle_read(const boost::system::error_code &ec,
// Read some more
boost::asio::async_read(socket_,
boost::asio::buffer(data_),
#if HAS_GENERIC_LAMBDA
[this](auto &&PH1, auto &&PH2) { handle_read(PH1, PH2); });
#else
boost::bind(&rtl_tcp_signal_source_c::handle_read, this, _1, _2));
#endif
boost::bind(&rtl_tcp_signal_source_c::handle_read, this, _1, _2)); // NOLINT(modernize-avoid-bind)
}
}