boost 1.73 fix

This commit is contained in:
Bastian Bloessl
2020-08-12 11:49:06 +02:00
parent ae1286a727
commit 0f659b4d50
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -34,9 +34,9 @@ ether_encap_impl::ether_encap_impl(bool debug) :
message_port_register_out(pmt::mp("to wifi")); message_port_register_out(pmt::mp("to wifi"));
message_port_register_in(pmt::mp("from tap")); message_port_register_in(pmt::mp("from tap"));
set_msg_handler(pmt::mp("from tap"), boost::bind(&ether_encap_impl::from_tap, this, _1)); set_msg_handler(pmt::mp("from tap"), boost::bind(&ether_encap_impl::from_tap, this, boost::placeholders::_1));
message_port_register_in(pmt::mp("from wifi")); message_port_register_in(pmt::mp("from wifi"));
set_msg_handler(pmt::mp("from wifi"), boost::bind(&ether_encap_impl::from_wifi, this, _1)); set_msg_handler(pmt::mp("from wifi"), boost::bind(&ether_encap_impl::from_wifi, this, boost::placeholders::_1));
} }
void void
+2 -2
View File
@@ -48,10 +48,10 @@ mac_impl(std::vector<uint8_t> src_mac, std::vector<uint8_t> dst_mac, std::vector
message_port_register_out(pmt::mp("app out")); message_port_register_out(pmt::mp("app out"));
message_port_register_in(pmt::mp("app in")); 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")); 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(src_mac)) throw std::invalid_argument("wrong mac address size");
if(!check_mac(dst_mac)) throw std::invalid_argument("wrong mac address size"); if(!check_mac(dst_mac)) throw std::invalid_argument("wrong mac address size");
+1 -1
View File
@@ -35,7 +35,7 @@ parse_mac_impl(bool log, bool debug) :
d_debug(debug) { d_debug(debug) {
message_port_register_in(pmt::mp("in")); 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")); message_port_register_out(pmt::mp("fer"));
} }