From 0f659b4d50b5decd1162f39d9fd9cf765c0d943b Mon Sep 17 00:00:00 2001 From: Bastian Bloessl Date: Wed, 12 Aug 2020 11:49:06 +0200 Subject: [PATCH] boost 1.73 fix --- lib/ether_encap_impl.cc | 4 ++-- lib/mac.cc | 4 ++-- lib/parse_mac.cc | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ether_encap_impl.cc b/lib/ether_encap_impl.cc index aaea027..b801ede 100644 --- a/lib/ether_encap_impl.cc +++ b/lib/ether_encap_impl.cc @@ -34,9 +34,9 @@ ether_encap_impl::ether_encap_impl(bool debug) : message_port_register_out(pmt::mp("to wifi")); message_port_register_in(pmt::mp("from tap")); - set_msg_handler(pmt::mp("from tap"), boost::bind(ðer_encap_impl::from_tap, this, _1)); + set_msg_handler(pmt::mp("from tap"), boost::bind(ðer_encap_impl::from_tap, this, boost::placeholders::_1)); message_port_register_in(pmt::mp("from wifi")); - set_msg_handler(pmt::mp("from wifi"), boost::bind(ðer_encap_impl::from_wifi, this, _1)); + set_msg_handler(pmt::mp("from wifi"), boost::bind(ðer_encap_impl::from_wifi, this, boost::placeholders::_1)); } void diff --git a/lib/mac.cc b/lib/mac.cc index 942691d..0d7e6f4 100644 --- a/lib/mac.cc +++ b/lib/mac.cc @@ -48,10 +48,10 @@ mac_impl(std::vector src_mac, std::vector dst_mac, std::vector message_port_register_out(pmt::mp("app out")); message_port_register_in(pmt::mp("app in")); - set_msg_handler(pmt::mp("app in"), boost::bind(&mac_impl::app_in, this, _1)); + set_msg_handler(pmt::mp("app in"), boost::bind(&mac_impl::app_in, this, boost::placeholders::_1)); message_port_register_in(pmt::mp("phy in")); - set_msg_handler(pmt::mp("phy in"), boost::bind(&mac_impl::phy_in, this, _1)); + set_msg_handler(pmt::mp("phy in"), boost::bind(&mac_impl::phy_in, this, boost::placeholders::_1)); if(!check_mac(src_mac)) throw std::invalid_argument("wrong mac address size"); if(!check_mac(dst_mac)) throw std::invalid_argument("wrong mac address size"); diff --git a/lib/parse_mac.cc b/lib/parse_mac.cc index bb5866c..dbfcac9 100644 --- a/lib/parse_mac.cc +++ b/lib/parse_mac.cc @@ -35,7 +35,7 @@ parse_mac_impl(bool log, bool debug) : d_debug(debug) { message_port_register_in(pmt::mp("in")); - set_msg_handler(pmt::mp("in"), boost::bind(&parse_mac_impl::parse, this, _1)); + set_msg_handler(pmt::mp("in"), boost::bind(&parse_mac_impl::parse, this, boost::placeholders::_1)); message_port_register_out(pmt::mp("fer")); }