diff --git a/CondCore/CondDB/plugins/RelationalAuthenticationService.cc b/CondCore/CondDB/plugins/RelationalAuthenticationService.cc index e892326549dfb..0eaddaf8e3a8d 100644 --- a/CondCore/CondDB/plugins/RelationalAuthenticationService.cc +++ b/CondCore/CondDB/plugins/RelationalAuthenticationService.cc @@ -16,7 +16,6 @@ #include #include -#include #include "CoralBase/MessageStream.h" @@ -24,9 +23,9 @@ cond::RelationalAuthenticationService::RelationalAuthenticationService::Relation const std::string& key) : coral::Service(key), m_authenticationPath(""), m_db(), m_cache(), m_callbackID(0) { boost::function1 cb( - boost::bind(&cond::RelationalAuthenticationService::RelationalAuthenticationService::setAuthenticationPath, + std::bind(&cond::RelationalAuthenticationService::RelationalAuthenticationService::setAuthenticationPath, this, - boost::placeholders::_1)); + std::placeholders::_1)); coral::Property* pm = dynamic_cast( coral::Context::instance().PropertyManager().property(auth::COND_AUTH_PATH_PROPERTY)); diff --git a/CondCore/CondDB/plugins/XMLAuthenticationService.cc b/CondCore/CondDB/plugins/XMLAuthenticationService.cc index f8614731682b5..8d835efb699a0 100644 --- a/CondCore/CondDB/plugins/XMLAuthenticationService.cc +++ b/CondCore/CondDB/plugins/XMLAuthenticationService.cc @@ -24,7 +24,6 @@ #include #include -#include #include "CoralBase/MessageStream.h" constexpr char XML_AUTHENTICATION_FILE[] = "authentication.xml"; @@ -78,7 +77,7 @@ const coral::IAuthenticationCredentials& cond::XMLAuthenticationService::DataSou cond::XMLAuthenticationService::XMLAuthenticationService::XMLAuthenticationService(const std::string& key) : coral::Service(key), m_isInitialized(false), m_inputFileName(""), m_data(), m_mutexLock(), m_callbackID(0) { boost::function1 cb( - boost::bind(&cond::XMLAuthenticationService::XMLAuthenticationService::setAuthenticationPath, this, _1)); + std::bind(&cond::XMLAuthenticationService::XMLAuthenticationService::setAuthenticationPath, this, std::placeholders::_1)); coral::Property* pm = dynamic_cast( coral::Context::instance().PropertyManager().property(auth::COND_AUTH_PATH_PROPERTY)); diff --git a/CondCore/Utilities/src/CondDBTools.cc b/CondCore/Utilities/src/CondDBTools.cc index 27e523338ccb7..cf1cce5a50178 100644 --- a/CondCore/Utilities/src/CondDBTools.cc +++ b/CondCore/Utilities/src/CondDBTools.cc @@ -5,7 +5,7 @@ #include "CondCore/CondDB/src/DbCore.h" // #include -#include + #include namespace cond { diff --git a/DataFormats/EcalDigi/test/EcalDigi_t.cpp b/DataFormats/EcalDigi/test/EcalDigi_t.cpp index a78fe1f339e02..51e8ec67d9e98 100644 --- a/DataFormats/EcalDigi/test/EcalDigi_t.cpp +++ b/DataFormats/EcalDigi/test/EcalDigi_t.cpp @@ -173,7 +173,7 @@ namespace { } // std::for_each(frames.begin(),frames.end(), - // boost::bind(verifyId,boost::bind(&edm::DataFrame::id,_1))); + // std::bind(verifyId,std::bind(&edm::DataFrame::id, std::placeholders::_1))); // same as above.... for (int n = 0; n < int(frames.size()); ++n) { edm::DataFrame df = frames[n]; diff --git a/Fireworks/Core/src/FWCompositeParameter.cc b/Fireworks/Core/src/FWCompositeParameter.cc index 1ba9df128223d..517a606ef7198 100644 --- a/Fireworks/Core/src/FWCompositeParameter.cc +++ b/Fireworks/Core/src/FWCompositeParameter.cc @@ -78,7 +78,7 @@ void FWCompositeParameter::addTo(FWConfiguration& oTo) const { (*it)->addTo(conf); } // std::for_each(begin(), end(), - // boost::bind(&FWParameterBase::addTo,_1,conf)); + // std::bind(&FWParameterBase::addTo, std::placeholders::_1,conf)); oTo.addKeyValue(name(), conf, true); } diff --git a/Fireworks/Core/src/FWISpyView.cc b/Fireworks/Core/src/FWISpyView.cc index 4b1e9131d6e4b..8fd2c6c2a96fe 100644 --- a/Fireworks/Core/src/FWISpyView.cc +++ b/Fireworks/Core/src/FWISpyView.cc @@ -11,7 +11,6 @@ // // system include files -#include // user include files #include "TGLViewer.h" diff --git a/Fireworks/Core/test/unittest_changemanager.cc b/Fireworks/Core/test/unittest_changemanager.cc index 9f1b7b4452ade..307da18357851 100644 --- a/Fireworks/Core/test/unittest_changemanager.cc +++ b/Fireworks/Core/test/unittest_changemanager.cc @@ -12,7 +12,6 @@ // system include files #include -#include #include #include "TClass.h" @@ -96,8 +95,8 @@ BOOST_AUTO_TEST_CASE(changemanager) { //NOTE: have to pass a pointer to the listener else the bind will // create a copy of the listener and the original one will never // 'hear' any signal - item.changed_.connect(boost::bind(&Listener::listen, &listener, _1)); - item.itemChanged_.connect(boost::bind(&ItemListener::listen, &iListener, _1)); + item.changed_.connect(std::bind(&Listener::listen, &listener, std::placeholders::_1)); + item.itemChanged_.connect(std::bind(&ItemListener::listen, &iListener, std::placeholders::_1)); BOOST_CHECK(listener.nHeard_ == 0); BOOST_CHECK(iListener.nHeard_ == 0); diff --git a/Fireworks/Core/test/unittest_eventitemsmanager.cc b/Fireworks/Core/test/unittest_eventitemsmanager.cc index 5a38295849748..c3bd00bd1dd18 100644 --- a/Fireworks/Core/test/unittest_eventitemsmanager.cc +++ b/Fireworks/Core/test/unittest_eventitemsmanager.cc @@ -12,7 +12,6 @@ // system include files #include -#include #include #include "TClass.h" @@ -62,7 +61,7 @@ BOOST_AUTO_TEST_CASE(eventitemmanager) { //NOTE: have to pass a pointer to the listener else the bind will // create a copy of the listener and the original one will never // 'hear' any signal - eim.newItem_.connect(boost::bind(&Listener::newItem, &listener, _1)); + eim.newItem_.connect(std::bind(&Listener::newItem, &listener, std::placeholders::_1)); TClass* cls = TClass::GetClass("std::vector"); assert(0 != cls); diff --git a/Fireworks/Core/test/unittest_parameters.cc b/Fireworks/Core/test/unittest_parameters.cc index 33d3bb610008d..dfdb6e6e9215f 100644 --- a/Fireworks/Core/test/unittest_parameters.cc +++ b/Fireworks/Core/test/unittest_parameters.cc @@ -13,7 +13,6 @@ // system include files #include #include -#include #include #include @@ -26,8 +25,8 @@ namespace { struct Test : public FWParameterizable { Test() - : m_double(this, "double", boost::bind(&Test::doubleChanged, this, _1)), - m_long(this, "long", boost::bind(&Test::longChanged, this, _1)), + : m_double(this, "double", std::bind(&Test::doubleChanged, this, std::placeholders::_1)), + m_long(this, "long", std::bind(&Test::longChanged, this, std::placeholders::_1)), m_wasChanged(false) {} void doubleChanged(double iValue) { diff --git a/Fireworks/Core/test/unittest_selectionmanager.cc b/Fireworks/Core/test/unittest_selectionmanager.cc index 42d0e36d19f9e..33bea67b4a4bc 100644 --- a/Fireworks/Core/test/unittest_selectionmanager.cc +++ b/Fireworks/Core/test/unittest_selectionmanager.cc @@ -12,7 +12,7 @@ // system include files //#include -#include + #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MAIN #include @@ -81,7 +81,7 @@ BOOST_AUTO_TEST_CASE(selectionmanager) { //NOTE: have to pass a pointer to the listener else the bind will // create a copy of the listener and the original one will never // 'hear' any signal - sm.selectionChanged_.connect(boost::bind(&Listener::listen, &listener, _1)); + sm.selectionChanged_.connect(std::bind(&Listener::listen, &listener, std::placeholders::_1)); reco::TrackCollection fVector; fVector.push_back(reco::Track()); diff --git a/GeneratorInterface/LHEInterface/plugins/LH5Source.cc b/GeneratorInterface/LHEInterface/plugins/LH5Source.cc index 02fdc4095dcc0..6e0e6f104bda0 100644 --- a/GeneratorInterface/LHEInterface/plugins/LH5Source.cc +++ b/GeneratorInterface/LHEInterface/plugins/LH5Source.cc @@ -4,7 +4,6 @@ #include #include -#include #include "FWCore/Framework/interface/InputSourceMacros.h" #include "FWCore/Framework/interface/MakerMacros.h" @@ -148,13 +147,13 @@ void LH5Source::readEvent_(edm::EventPrincipal& eventPrincipal) { } std::for_each(partonLevel_->weights().begin(), partonLevel_->weights().end(), - boost::bind(&LHEEventProduct::addWeight, product.get(), _1)); + std::bind(&LHEEventProduct::addWeight, product.get(), std::placeholders::_1)); product->setScales(partonLevel_->scales()); product->setNpLO(partonLevel_->npLO()); product->setNpNLO(partonLevel_->npNLO()); std::for_each(partonLevel_->getComments().begin(), partonLevel_->getComments().end(), - boost::bind(&LHEEventProduct::addComment, product.get(), _1)); + std::bind(&LHEEventProduct::addComment, product.get(), std::placeholders::_1)); std::unique_ptr edp(new edm::Wrapper(std::move(product))); eventPrincipal.put(lheProvenanceHelper_.eventProductBranchDescription_, diff --git a/GeneratorInterface/MCatNLOInterface/plugins/MCatNLOSource.cc b/GeneratorInterface/MCatNLOInterface/plugins/MCatNLOSource.cc index fe643fb579795..5f38d9e35e176 100644 --- a/GeneratorInterface/MCatNLOInterface/plugins/MCatNLOSource.cc +++ b/GeneratorInterface/MCatNLOInterface/plugins/MCatNLOSource.cc @@ -7,7 +7,6 @@ #include #include -#include #include "FWCore/Framework/interface/InputSourceMacros.h" #include "FWCore/Framework/interface/MakerMacros.h" diff --git a/GeneratorInterface/Pythia6Interface/src/Pythia6Service.cc b/GeneratorInterface/Pythia6Interface/src/Pythia6Service.cc index 98ff2cf883eaa..3c031ee9752ce 100644 --- a/GeneratorInterface/Pythia6Interface/src/Pythia6Service.cc +++ b/GeneratorInterface/Pythia6Interface/src/Pythia6Service.cc @@ -7,7 +7,7 @@ #include #include -#include + #include #include #include diff --git a/PerfTools/Callgrind/test/ProfilerServiceTest.cppunit.cc b/PerfTools/Callgrind/test/ProfilerServiceTest.cppunit.cc index 2e5b5ddd568ae..aac1898f7d27f 100644 --- a/PerfTools/Callgrind/test/ProfilerServiceTest.cppunit.cc +++ b/PerfTools/Callgrind/test/ProfilerServiceTest.cppunit.cc @@ -4,7 +4,7 @@ #include "FWCore/ServiceRegistry/interface/ActivityRegistry.h" #include -#include + #include #include diff --git a/RecoLocalTracker/SiPixelRecHits/src/VVIObj.cc b/RecoLocalTracker/SiPixelRecHits/src/VVIObj.cc index bf662801d69eb..1679cf133ddef 100644 --- a/RecoLocalTracker/SiPixelRecHits/src/VVIObj.cc +++ b/RecoLocalTracker/SiPixelRecHits/src/VVIObj.cc @@ -20,7 +20,7 @@ #include #include -#include + namespace VVIObjDetails { void sincosint(double x, double& sint, double& cint); //! Private version of the cosine and sine integral diff --git a/SimMuon/CSCDigitizer/src/CSCStripElectronicsSim.cc b/SimMuon/CSCDigitizer/src/CSCStripElectronicsSim.cc index 8b64fb94bc9a7..008781b0611f5 100644 --- a/SimMuon/CSCDigitizer/src/CSCStripElectronicsSim.cc +++ b/SimMuon/CSCDigitizer/src/CSCStripElectronicsSim.cc @@ -14,7 +14,6 @@ #include "CLHEP/Units/GlobalPhysicalConstants.h" #include "CLHEP/Units/GlobalSystemOfUnits.h" -#include "boost/bind.hpp" #include #include diff --git a/Validation/MuonRPCGeometry/test/RPCHistos.cc b/Validation/MuonRPCGeometry/test/RPCHistos.cc index 7f7624e561539..fd3543a23dcdd 100644 --- a/Validation/MuonRPCGeometry/test/RPCHistos.cc +++ b/Validation/MuonRPCGeometry/test/RPCHistos.cc @@ -11,7 +11,6 @@ #include "FWCore/Framework/interface/Frameworkfwd.h" #include "L1Trigger/RPCTrigger/interface/RPCConst.h" #include "FWCore/Utilities/interface/Exception.h" -//#include "boost/bind.hpp" const double ptRanges[RPCConst::m_PT_CODE_MAX+2]= { 0.0, 0.01,