From 4a3ef72ee89b51fbfa0ec5250a700ea1c74b26e6 Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Mon, 28 Oct 2019 14:48:50 +0100 Subject: [PATCH] ExpressionEvaluation: Remove use of BOOST_FOREACH. Use range-based for instead. --- .../ExpressionEvaluation/Root/ParsingInternals.cxx | 4 ++-- .../CommonTools/ExpressionEvaluation/Root/ParsingInternals.h | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/PhysicsAnalysis/CommonTools/ExpressionEvaluation/Root/ParsingInternals.cxx b/PhysicsAnalysis/CommonTools/ExpressionEvaluation/Root/ParsingInternals.cxx index 782b7c8919b..6f1d04d3dc7 100644 --- a/PhysicsAnalysis/CommonTools/ExpressionEvaluation/Root/ParsingInternals.cxx +++ b/PhysicsAnalysis/CommonTools/ExpressionEvaluation/Root/ParsingInternals.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration */ ///////////////////////////////////////////////////////////////// @@ -186,7 +186,7 @@ namespace ExpressionParsing { void Compiler::operator()(ast::expression const& x) const { boost::apply_visitor(*this, x.first); - BOOST_FOREACH(ast::operation const& oper, x.rest) + for(ast::operation const& oper : x.rest) { (*this)(oper); } diff --git a/PhysicsAnalysis/CommonTools/ExpressionEvaluation/Root/ParsingInternals.h b/PhysicsAnalysis/CommonTools/ExpressionEvaluation/Root/ParsingInternals.h index fb4544d308c..eb153491d01 100644 --- a/PhysicsAnalysis/CommonTools/ExpressionEvaluation/Root/ParsingInternals.h +++ b/PhysicsAnalysis/CommonTools/ExpressionEvaluation/Root/ParsingInternals.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration */ ///////////////////////////////////////////////////////////////// @@ -25,7 +25,6 @@ #include <boost/variant/apply_visitor.hpp> #include <boost/fusion/include/adapt_struct.hpp> #include <boost/spirit/include/phoenix_function.hpp> -#include <boost/foreach.hpp> #include <iostream> #include <string> -- GitLab