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,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);
|
||||
|
||||
Reference in New Issue
Block a user