boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated

This commit is contained in:
wmayer
2020-06-09 12:55:29 +02:00
committed by wwmayer
parent 3f212ad8ac
commit 4ec45b545e
112 changed files with 451 additions and 390 deletions

View File

@@ -69,7 +69,7 @@
#include <sstream>
// boost
#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>
#include <boost/lexical_cast.hpp>
#ifdef FC_OS_WIN32

View File

@@ -25,7 +25,7 @@
#ifndef _PreComp_
# include <Standard_math.hxx>
# include <boost/bind.hpp>
# include <boost/bind/bind.hpp>
# include <QAction>
# include <QMenu>
#endif

View File

@@ -47,7 +47,7 @@
# include <QMessageBox>
# include <boost/bind.hpp>
# include <boost/bind/bind.hpp>
# include <math.h>
#endif
@@ -69,12 +69,13 @@
#include "ui_SphereWidget.h"
using namespace FemGui;
namespace bp = boost::placeholders;
void FunctionWidget::setViewProvider(ViewProviderFemPostFunction* view) {
m_view = view;
m_object = static_cast<Fem::FemPostFunction*>(view->getObject());
m_connection = m_object->getDocument()->signalChangedObject.connect(boost::bind(&FunctionWidget::onObjectsChanged, this, _1, _2));
m_connection = m_object->getDocument()->signalChangedObject.connect(boost::bind(&FunctionWidget::onObjectsChanged, this, bp::_1, bp::_2));
}
void FunctionWidget::onObjectsChanged(const App::DocumentObject& obj, const App::Property& p) {