Commit 24929b57 authored by Rosen Matev's avatar Rosen Matev
Browse files

Remove deprecated use of Boost.bind

gets rid of some pragma messages from Boost
parent cae8037f
Pipeline #3272069 passed with stages
in 14 seconds
......@@ -12,7 +12,7 @@
#define MICRODST_RELATIONSCLONERALG_H 1
// Include files
#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>
#include <boost/function.hpp>
// From MicroDST
#include "MicroDST/BindType2ClonerDef.h"
......@@ -54,8 +54,8 @@ namespace MicroDST {
, m_cloner( NULL )
, m_clonerType( DEFAULTS::clonerType )
, m_useOriginalFrom( false )
, m_tableCloner( boost::bind( &RelationsClonerAlg<TABLE>::cloneFrom, &( *this ), _1 ),
boost::bind( &RelationsClonerAlg<TABLE>::cloneTo, &( *this ), _1 ) ) {
, m_tableCloner( boost::bind( &RelationsClonerAlg<TABLE>::cloneFrom, &( *this ), boost::placeholders::_1 ),
boost::bind( &RelationsClonerAlg<TABLE>::cloneTo, &( *this ), boost::placeholders::_1 ) ) {
declareProperty( "ClonerType", m_clonerType );
declareProperty( "UseOriginalFrom", m_useOriginalFrom, "Take 'from' object from original location" );
// setProperty( "OutputLevel", 1 );
......
......@@ -15,7 +15,7 @@
#include <set>
// Include files
#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>
#include <boost/function.hpp>
// From MicroDST
......@@ -53,8 +53,9 @@ namespace MicroDST {
/// Standard constructor
RelationsFromClonerAlg( const std::string& name, ISvcLocator* pSvcLocator )
: MicroDSTAlgorithm( name, pSvcLocator )
, m_tableCloner( boost::bind( &RelationsFromClonerAlg<TABLE>::cloneFrom, &( *this ), _1 ),
boost::bind( &RelationsFromClonerAlg<TABLE>::cloneTo, &( *this ), _1 ) ) {}
, m_tableCloner( boost::bind( &RelationsFromClonerAlg<TABLE>::cloneFrom, &( *this ), boost::placeholders::_1 ),
boost::bind( &RelationsFromClonerAlg<TABLE>::cloneTo, &( *this ), boost::placeholders::_1 ) ) {
}
//===========================================================================
StatusCode initialize() override {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment