boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
# if BOOST_VERSION >= 104100
|
||||
# include <boost/thread/future.hpp>
|
||||
# endif
|
||||
# include <boost/bind.hpp>
|
||||
# include <boost/bind/bind.hpp>
|
||||
# include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
@@ -81,6 +81,8 @@
|
||||
#include "GLGraphicsView.h"
|
||||
#include "TaskPanelView.h"
|
||||
|
||||
namespace bp = boost::placeholders;
|
||||
|
||||
DEF_STD_CMD(CmdSandboxDocumentThread);
|
||||
|
||||
CmdSandboxDocumentThread::CmdSandboxDocumentThread()
|
||||
@@ -829,7 +831,7 @@ void CmdSandboxMeshTestJob::activated(int)
|
||||
Base::Console().Message("Mesh test (step %d)...\n",iteration++);
|
||||
MeshTestJob meshJob;
|
||||
QFuture<Mesh::MeshObject*> mesh_future = QtConcurrent::mapped
|
||||
(mesh_groups, boost::bind(&MeshTestJob::run, &meshJob, _1));
|
||||
(mesh_groups, boost::bind(&MeshTestJob::run, &meshJob, bp::_1));
|
||||
|
||||
// keep it responsive during computation
|
||||
QFutureWatcher<Mesh::MeshObject*> mesh_watcher;
|
||||
|
||||
Reference in New Issue
Block a user