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

@@ -40,7 +40,7 @@
#include <QPrintDialog>
#include <QPrintPreviewDialog>
#include <boost/signals2.hpp>
#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>
#endif // #ifndef _PreComp_
@@ -109,6 +109,7 @@
using namespace TechDrawGui;
namespace bp = boost::placeholders;
/* TRANSLATOR TechDrawGui::MDIViewPage */
@@ -163,7 +164,7 @@ MDIViewPage::MDIViewPage(ViewProviderPage *pageVp, Gui::Document* doc, QWidget*
//get informed by App side about deleted DocumentObjects
App::Document* appDoc = m_vpPage->getDocument()->getDocument();
auto bnd = boost::bind(&MDIViewPage::onDeleteObject, this, _1);
auto bnd = boost::bind(&MDIViewPage::onDeleteObject, this, bp::_1);
connectDeletedObject = appDoc->signalDeletedObject.connect(bnd);
}

View File

@@ -27,7 +27,7 @@
#ifndef _PreComp_
#include <boost/signals2.hpp>
#include <boost/signals2/connection.hpp>
#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>
#endif
@@ -56,6 +56,7 @@
#include "ViewProviderDrawingView.h"
using namespace TechDrawGui;
namespace bp = boost::placeholders;
PROPERTY_SOURCE(TechDrawGui::ViewProviderDrawingView, Gui::ViewProviderDocumentObject)
@@ -82,7 +83,7 @@ void ViewProviderDrawingView::attach(App::DocumentObject *pcFeat)
// Base::Console().Message("VPDV::attach(%s)\n", pcFeat->getNameInDocument());
ViewProviderDocumentObject::attach(pcFeat);
auto bnd = boost::bind(&ViewProviderDrawingView::onGuiRepaint, this, _1);
auto bnd = boost::bind(&ViewProviderDrawingView::onGuiRepaint, this, bp::_1);
auto feature = getViewObject();
if (feature != nullptr) {
connectGuiRepaint = feature->signalGuiPaint.connect(bnd);

View File

@@ -30,11 +30,11 @@
# include <QMessageBox>
# include <QTextStream>
# include <QTimer>
#include <QList>
#include <QPointer>
#include <boost/signals2.hpp>
#include <boost/signals2/connection.hpp>
#include <boost/bind.hpp>
# include <QList>
# include <QPointer>
# include <boost/signals2.hpp>
# include <boost/signals2/connection.hpp>
# include <boost/bind/bind.hpp>
#endif
@@ -73,6 +73,7 @@
using namespace TechDrawGui;
using namespace TechDraw;
namespace bp = boost::placeholders;
#define _SHOWDRAWING 10
#define _TOGGLEUPDATE 11
@@ -107,7 +108,7 @@ void ViewProviderPage::attach(App::DocumentObject *pcFeat)
{
ViewProviderDocumentObject::attach(pcFeat);
auto bnd = boost::bind(&ViewProviderPage::onGuiRepaint, this, _1);
auto bnd = boost::bind(&ViewProviderPage::onGuiRepaint, this, bp::_1);
auto feature = getDrawPage();
if (feature != nullptr) {
connectGuiRepaint = feature->signalGuiPaint.connect(bnd);