boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
|
||||
#ifndef _PreComp_
|
||||
# include <boost/signals2.hpp>
|
||||
# include <boost/bind.hpp>
|
||||
# include <boost/bind/bind.hpp>
|
||||
# include <qapplication.h>
|
||||
# include <qregexp.h>
|
||||
# include <QEvent>
|
||||
@@ -44,6 +44,7 @@
|
||||
#include "ViewProviderDocumentObject.h"
|
||||
|
||||
using namespace Gui;
|
||||
namespace bp = boost::placeholders;
|
||||
|
||||
TYPESYSTEM_SOURCE_ABSTRACT(Gui::MDIView,Gui::BaseView)
|
||||
|
||||
@@ -61,7 +62,7 @@ MDIView::MDIView(Gui::Document* pcDocument,QWidget* parent, Qt::WindowFlags wfla
|
||||
if (pcDocument)
|
||||
{
|
||||
connectDelObject = pcDocument->signalDeletedObject.connect
|
||||
(boost::bind(&ActiveObjectList::objectDeleted, &ActiveObjects, _1));
|
||||
(boost::bind(&ActiveObjectList::objectDeleted, &ActiveObjects, bp::_1));
|
||||
assert(connectDelObject.connected());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user