replace boost::bind with std::bind

This commit is contained in:
Andrzej Rybczak
2015-05-11 01:28:52 +02:00
parent cf6cf7d787
commit a7dab01eff
12 changed files with 73 additions and 68 deletions

View File

@@ -19,7 +19,7 @@
***************************************************************************/
#include <algorithm>
#include <boost/bind.hpp>
#include <boost/lambda/bind.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <cassert>
@@ -41,6 +41,8 @@
using Global::MainHeight;
using Global::MainStartY;
namespace ph = std::placeholders;
PlaylistEditor *myPlaylistEditor;
namespace {
@@ -85,12 +87,12 @@ PlaylistEditor::PlaylistEditor()
{
case DisplayMode::Classic:
Content.setItemDisplayer(
boost::bind(Display::Songs, _1, contentProxyList(), Config.song_list_format
std::bind(Display::Songs, ph::_1, contentProxyList(), std::cref(Config.song_list_format)
));
break;
case DisplayMode::Columns:
Content.setItemDisplayer(
boost::bind(Display::SongsInColumns, _1, contentProxyList())
std::bind(Display::SongsInColumns, ph::_1, contentProxyList())
);
break;
}