boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated
This commit is contained in:
@@ -22,11 +22,14 @@
|
||||
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <QSignalMapper>
|
||||
#include <QDockWidget>
|
||||
#include <QMessageBox>
|
||||
#include <QClipboard>
|
||||
#include <QMetaObject>
|
||||
#include <boost/bind/bind.hpp>
|
||||
#endif
|
||||
|
||||
#include "Placement.h"
|
||||
#include "ui_Placement.h"
|
||||
@@ -45,6 +48,7 @@
|
||||
#include <Base/UnitsApi.h>
|
||||
|
||||
using namespace Gui::Dialog;
|
||||
namespace bp = boost::placeholders;
|
||||
|
||||
namespace Gui { namespace Dialog {
|
||||
class find_placement
|
||||
@@ -118,7 +122,7 @@ Placement::Placement(QWidget* parent, Qt::WindowFlags fl)
|
||||
connect(signalMapper, SIGNAL(mapped(int)),
|
||||
this, SLOT(onPlacementChanged(int)));
|
||||
connectAct = Application::Instance->signalActiveDocument.connect
|
||||
(boost::bind(&Placement::slotActiveDocument, this, _1));
|
||||
(boost::bind(&Placement::slotActiveDocument, this, bp::_1));
|
||||
App::Document* activeDoc = App::GetApplication().getActiveDocument();
|
||||
if (activeDoc) documents.insert(activeDoc->getName());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user