boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
# include <cfloat>
|
||||
# include <boost/bind.hpp>
|
||||
# include <boost/bind/bind.hpp>
|
||||
# include <gp_Lin.hxx>
|
||||
# include <gp_Pln.hxx>
|
||||
# include <BRep_Builder.hxx>
|
||||
@@ -51,6 +51,7 @@ FC_LOG_LEVEL_INIT("PartDesign",true,true)
|
||||
#endif
|
||||
|
||||
using namespace PartDesign;
|
||||
namespace bp = boost::placeholders;
|
||||
|
||||
// ============================================================================
|
||||
|
||||
@@ -229,7 +230,7 @@ void ShapeBinder::onSettingDocument()
|
||||
App::Document* document = getDocument();
|
||||
if (document) {
|
||||
this->connectDocumentChangedObject = document->signalChangedObject.connect(boost::bind
|
||||
(&ShapeBinder::slotChangedObject, this, _1, _2));
|
||||
(&ShapeBinder::slotChangedObject, this, bp::_1, bp::_2));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -608,7 +609,7 @@ void SubShapeBinder::onChanged(const App::Property *prop) {
|
||||
{
|
||||
contextDoc = Context.getValue()->getDocument();
|
||||
connRecomputedObj = contextDoc->signalRecomputedObject.connect(
|
||||
boost::bind(&SubShapeBinder::slotRecomputedObject, this, _1));
|
||||
boost::bind(&SubShapeBinder::slotRecomputedObject, this, bp::_1));
|
||||
}
|
||||
}else if(!isRestoring()) {
|
||||
if(prop == &Support) {
|
||||
|
||||
Reference in New Issue
Block a user