diff options
author | selsta <selsta@sent.at> | 2020-05-14 22:57:53 +0200 |
---|---|---|
committer | selsta <selsta@sent.at> | 2020-05-14 22:57:53 +0200 |
commit | f35ced6d7f00282091a9623bad573132f42a91b0 (patch) | |
tree | 1aea66f2e56063eb0a5f20481e42dcf92c296af0 /src | |
parent | Merge pull request #6510 (diff) | |
download | monero-f35ced6d7f00282091a9623bad573132f42a91b0.tar.xz |
build: fix boost 1.73 compatibility
Diffstat (limited to 'src')
-rw-r--r-- | src/checkpoints/checkpoints.cpp | 4 | ||||
-rw-r--r-- | src/device_trezor/trezor/transport.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/checkpoints/checkpoints.cpp b/src/checkpoints/checkpoints.cpp index 4a4b3c5c2..852e21318 100644 --- a/src/checkpoints/checkpoints.cpp +++ b/src/checkpoints/checkpoints.cpp @@ -135,8 +135,8 @@ namespace cryptonote { std::map< uint64_t, crypto::hash >::const_iterator highest = std::max_element( m_points.begin(), m_points.end(), - ( boost::bind(&std::map< uint64_t, crypto::hash >::value_type::first, _1) < - boost::bind(&std::map< uint64_t, crypto::hash >::value_type::first, _2 ) ) ); + ( boost::bind(&std::map< uint64_t, crypto::hash >::value_type::first, boost::placeholders::_1) < + boost::bind(&std::map< uint64_t, crypto::hash >::value_type::first, boost::placeholders::_2 ) ) ); return highest->first; } //--------------------------------------------------------------------------- diff --git a/src/device_trezor/trezor/transport.cpp b/src/device_trezor/trezor/transport.cpp index 52bee6c6c..51396d90a 100644 --- a/src/device_trezor/trezor/transport.cpp +++ b/src/device_trezor/trezor/transport.cpp @@ -711,7 +711,7 @@ namespace trezor{ // Start the asynchronous operation itself. The handle_receive function // used as a callback will update the ec and length variables. m_socket->async_receive_from(boost::asio::buffer(buffer), m_endpoint, - boost::bind(&UdpTransport::handle_receive, _1, _2, &ec, &length)); + boost::bind(&UdpTransport::handle_receive, boost::placeholders::_1, boost::placeholders::_2, &ec, &length)); // Block until the asynchronous operation has completed. do { |