diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-05-04 14:27:04 -0700 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2020-05-04 15:40:28 -0700 |
commit | e6a77e1297fb92ee5854bf30d5bd97b97a2fa010 (patch) | |
tree | 18644c9a1f26ff7843a88321c8a076f5e3614c61 /src/decoder/DecoderPrint.cxx | |
parent | 3c955639a7e5d4bd5fb13b62e12407ea97099e86 (diff) |
remove std::bind usage as much as possible
Reduces unstripped size. stripped size is the same.
Also took the time to remove using std::placeholders.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/decoder/DecoderPrint.cxx')
-rw-r--r-- | src/decoder/DecoderPrint.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/DecoderPrint.cxx b/src/decoder/DecoderPrint.cxx index 8dccb3256..ad63d99db 100644 --- a/src/decoder/DecoderPrint.cxx +++ b/src/decoder/DecoderPrint.cxx @@ -47,7 +47,7 @@ decoder_plugin_print(Response &r, void decoder_list_print(Response &r) { - using namespace std::placeholders; - const auto f = std::bind(decoder_plugin_print, std::ref(r), _1); + const auto f = [&](const auto &plugin) + { return decoder_plugin_print(r, plugin); }; decoder_plugins_for_each_enabled(f); } |