From 03a44b499a12bc4f965bf37f1625e09e7de2340c Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 5 Mar 2018 18:08:09 -0500 Subject: Avoid std::bind in Channel::received_data Lambda works just as well here. GH #493 --- src/lib/tls/tls_channel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/tls/tls_channel.cpp b/src/lib/tls/tls_channel.cpp index e92b298de..6e3e5987b 100644 --- a/src/lib/tls/tls_channel.cpp +++ b/src/lib/tls/tls_channel.cpp @@ -314,8 +314,7 @@ size_t Channel::received_data(const uint8_t input[], size_t input_size) raw_input, record, m_sequence_numbers.get(), - std::bind(&TLS::Channel::read_cipher_state_epoch, this, - std::placeholders::_1)); + [this](uint16_t epoch) { return read_cipher_state_epoch(epoch); }); BOTAN_ASSERT(consumed > 0, "Got to eat something"); -- cgit v1.2.3