diff --git a/src/db/DatabasePlaylist.cxx b/src/db/DatabasePlaylist.cxx index 78a9d9b67..ae4170ffe 100644 --- a/src/db/DatabasePlaylist.cxx +++ b/src/db/DatabasePlaylist.cxx @@ -39,7 +39,6 @@ search_add_to_playlist(const Database &db, const Storage *storage, const DatabaseSelection &selection) { using namespace std::placeholders; - const auto f = std::bind(AddSong, storage, - playlist_path_utf8, _1); + const auto f = [=](auto && arg1) { return AddSong(storage, playlist_path_utf8, arg1); }; db.Visit(selection, f); } diff --git a/src/pcm/Dop.cxx b/src/pcm/Dop.cxx index ed84e4abe..89c68d689 100644 --- a/src/pcm/Dop.cxx +++ b/src/pcm/Dop.cxx @@ -94,5 +94,5 @@ DsdToDopConverter::Convert(ConstBuffer src) noexcept { using namespace std::placeholders; return rest_buffer.Process(buffer, src, 2 * channels, - std::bind(DsdToDop, _1, _2, _3, channels)); + [=](auto && arg1, auto && arg2, auto && arg3) { return DsdToDop(arg1, arg2, arg3, channels); }); } diff --git a/src/pcm/Dsd16.cxx b/src/pcm/Dsd16.cxx index 52cef4bed..24be94570 100644 --- a/src/pcm/Dsd16.cxx +++ b/src/pcm/Dsd16.cxx @@ -65,5 +65,5 @@ Dsd16Converter::Convert(ConstBuffer src) noexcept { using namespace std::placeholders; return rest_buffer.Process(buffer, src, channels, - std::bind(Dsd8To16, _1, _2, _3, channels)); + [=](auto && arg1, auto && arg2, auto && arg3) { return Dsd8To16(arg1, arg2, arg3, channels); }); } diff --git a/src/pcm/Dsd32.cxx b/src/pcm/Dsd32.cxx index a6fd81018..81d94917c 100644 --- a/src/pcm/Dsd32.cxx +++ b/src/pcm/Dsd32.cxx @@ -67,5 +67,5 @@ Dsd32Converter::Convert(ConstBuffer src) noexcept { using namespace std::placeholders; return rest_buffer.Process(buffer, src, channels, - std::bind(Dsd8To32, _1, _2, _3, channels)); + [=](auto && arg1, auto && arg2, auto && arg3) { return Dsd8To32(arg1, arg2, arg3, channels); }); }