boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated
This commit is contained in:
@@ -27,7 +27,9 @@
|
||||
#include <boost/fusion/include/at_c.hpp>
|
||||
#include <boost/fusion/include/make_vector.hpp>
|
||||
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/bind/bind.hpp>
|
||||
|
||||
namespace bp = boost::placeholders;
|
||||
|
||||
namespace dcm {
|
||||
|
||||
@@ -686,7 +688,7 @@ void ClusterGraph<edge_prop, vertex_prop, cluster_prop, objects>::downstreamRemo
|
||||
re.push_back(* (it.first));
|
||||
};
|
||||
|
||||
std::for_each(re.begin(), re.end(), boost::bind(&ClusterGraph::simpleRemoveEdge, this, _1));
|
||||
std::for_each(re.begin(), re.end(), boost::bind(&ClusterGraph::simpleRemoveEdge, this, bp::_1));
|
||||
|
||||
//if we have the real vertex here and not only a containing cluster we can delete it
|
||||
if(!isCluster(res.first)) {
|
||||
@@ -751,7 +753,7 @@ template<typename Functor>
|
||||
void ClusterGraph<edge_prop, vertex_prop, cluster_prop, objects>::removeEdge(LocalEdge id, Functor& f) {
|
||||
|
||||
std::vector<edge_bundle_single>& vec = fusion::at_c<1> ((*this) [id]);
|
||||
std::for_each(vec.begin(), vec.end(), boost::bind<void> (boost::ref(apply_remove_prediacte<placehoder, ClusterGraph> (f, -1)), _1));
|
||||
std::for_each(vec.begin(), vec.end(), boost::bind<void> (boost::ref(apply_remove_prediacte<placehoder, ClusterGraph> (f, -1)), bp::_1));
|
||||
boost::remove_edge(id, *this);
|
||||
};
|
||||
|
||||
|
||||
@@ -22,10 +22,11 @@
|
||||
|
||||
#include "../module.hpp"
|
||||
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/bind/bind.hpp>
|
||||
|
||||
#include "constraint3d_imp.hpp"
|
||||
#include "geometry3d_imp.hpp"
|
||||
namespace bp = boost::placeholders;
|
||||
|
||||
namespace dcm {
|
||||
|
||||
@@ -112,7 +113,7 @@ void Module3D<Typelist, ID>::type<Sys>::inheriter_base::removeGeometry3D(Geom g)
|
||||
g->template emitSignal<remove>(g);
|
||||
|
||||
//remove the vertex from graph and emit all edges that get removed with the functor
|
||||
boost::function<void(GlobalEdge)> functor = boost::bind(&inheriter_base::apply_edge_remove, this, _1);
|
||||
boost::function<void(GlobalEdge)> functor = boost::bind(&inheriter_base::apply_edge_remove, this, bp::_1);
|
||||
m_this->m_cluster->removeVertex(v, functor);
|
||||
m_this->erase(g);
|
||||
};
|
||||
|
||||
@@ -28,7 +28,8 @@
|
||||
#include "defines.hpp"
|
||||
|
||||
#include <boost/exception/errinfo_errno.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/bind/bind.hpp>
|
||||
namespace bp = boost::placeholders;
|
||||
|
||||
namespace dcm {
|
||||
|
||||
@@ -159,7 +160,7 @@ struct segment3D {
|
||||
base::append(g1);
|
||||
g1->template linkTo<tag::segment3D>(base::m_shape,0);
|
||||
g1->template setProperty<typename base::shape_purpose_prop>(line);
|
||||
g1->template connectSignal<recalculated>(boost::bind(&base::Shape3D::recalc, base::m_shape, _1));
|
||||
g1->template connectSignal<recalculated>(boost::bind(&base::Shape3D::recalc, base::m_shape, bp::_1));
|
||||
|
||||
//we have a segment, lets link the two points to it
|
||||
boost::shared_ptr<Geometry3D> g2 = base::m_system->createGeometry3D();
|
||||
@@ -205,7 +206,7 @@ struct segment3D {
|
||||
base::append(g3);
|
||||
g3->template linkTo<tag::segment3D>(base::m_shape,0);
|
||||
g3->template setProperty<typename base::shape_purpose_prop>(line);
|
||||
g3->template connectSignal<recalculated>(boost::bind(&base::Shape3D::recalc, base::m_shape, _1));
|
||||
g3->template connectSignal<recalculated>(boost::bind(&base::Shape3D::recalc, base::m_shape, bp::_1));
|
||||
|
||||
//link the points to our new segment
|
||||
g1->template linkTo<tag::point3D>(base::m_shape, 0);
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
#include <Gui/ViewProvider.h>
|
||||
#include <Gui/MainWindow.h>
|
||||
#include <Gui/BitmapFactory.h>
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
using namespace AssemblyGui;
|
||||
using namespace Gui::TaskView;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#ifndef _PreComp_
|
||||
# include <qobject.h>
|
||||
# include <boost/bind.hpp>
|
||||
# include <boost/bind/bind.hpp>
|
||||
|
||||
#endif
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
#include "Workbench.h"
|
||||
|
||||
using namespace AssemblyGui;
|
||||
|
||||
namespace bp = boost::placeholders;
|
||||
|
||||
|
||||
|
||||
@@ -202,10 +202,10 @@ void Workbench::activated()
|
||||
//}
|
||||
|
||||
// Let us be notified when a document is activated, so that we can update the ActivePartObject
|
||||
Gui::Application::Instance->signalActiveDocument.connect(boost::bind(&Workbench::slotActiveDocument, this, _1));
|
||||
App::GetApplication().signalNewDocument.connect(boost::bind(&Workbench::slotNewDocument, this, _1));
|
||||
App::GetApplication().signalFinishRestoreDocument.connect(boost::bind(&Workbench::slotFinishRestoreDocument, this, _1));
|
||||
App::GetApplication().signalDeleteDocument.connect(boost::bind(&Workbench::slotDeleteDocument, this, _1));
|
||||
Gui::Application::Instance->signalActiveDocument.connect(boost::bind(&Workbench::slotActiveDocument, this, bp::_1));
|
||||
App::GetApplication().signalNewDocument.connect(boost::bind(&Workbench::slotNewDocument, this, bp::_1));
|
||||
App::GetApplication().signalFinishRestoreDocument.connect(boost::bind(&Workbench::slotFinishRestoreDocument, this, bp::_1));
|
||||
App::GetApplication().signalDeleteDocument.connect(boost::bind(&Workbench::slotDeleteDocument, this, bp::_1));
|
||||
|
||||
|
||||
Gui::Control().showModelView();
|
||||
@@ -216,10 +216,10 @@ void Workbench::deactivated()
|
||||
Gui::Command::doCommand(Gui::Command::Doc,"AssemblyGui.setActiveAssembly(None)");
|
||||
|
||||
// Disconnect all document signals...
|
||||
Gui::Application::Instance->signalActiveDocument.disconnect(boost::bind(&Workbench::slotActiveDocument, this, _1));
|
||||
App::GetApplication().signalNewDocument.disconnect(boost::bind(&Workbench::slotNewDocument, this, _1));
|
||||
App::GetApplication().signalFinishRestoreDocument.disconnect(boost::bind(&Workbench::slotFinishRestoreDocument, this, _1));
|
||||
App::GetApplication().signalDeleteDocument.disconnect(boost::bind(&Workbench::slotDeleteDocument, this, _1));
|
||||
Gui::Application::Instance->signalActiveDocument.disconnect(boost::bind(&Workbench::slotActiveDocument, this, bp::_1));
|
||||
App::GetApplication().signalNewDocument.disconnect(boost::bind(&Workbench::slotNewDocument, this, bp::_1));
|
||||
App::GetApplication().signalFinishRestoreDocument.disconnect(boost::bind(&Workbench::slotFinishRestoreDocument, this, bp::_1));
|
||||
App::GetApplication().signalDeleteDocument.disconnect(boost::bind(&Workbench::slotDeleteDocument, this, bp::_1));
|
||||
|
||||
Gui::Workbench::deactivated();
|
||||
removeTaskWatcher();
|
||||
|
||||
Reference in New Issue
Block a user