Skip to content
Snippets Groups Projects
Commit 9d152160 authored by Christian Godenschwager's avatar Christian Godenschwager
Browse files

Remove BOOST_FOREACH macro and replace range-based for

parent 628be35f
No related merge requests found
......@@ -31,7 +31,6 @@
#include "core/uid/SUID.h"
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp>
#include <algorithm>
#include <functional>
......
......@@ -23,8 +23,6 @@
#include "CellSet.h"
#include "CellVector.h"
#include <boost/foreach.hpp>
namespace walberla {
namespace cell {
......@@ -51,7 +49,7 @@ bool CellInterval::overlaps( const CellVector& cellVector ) const
if( empty() )
return false;
BOOST_FOREACH( const Cell & cell, cellVector )
for( const Cell & cell : cellVector )
{
if( this->contains( cell ) )
return true;
......
......@@ -21,7 +21,6 @@
#include "ConfigToBoostPropertyTree.h"
#include <boost/foreach.hpp>
#include <boost/property_tree/ptree.hpp>
......@@ -39,7 +38,7 @@ boost::property_tree::iptree configBlockHandleToBoostPropertyTree( const Config:
Config::Blocks blocks;
blockHandle.getBlocks(blocks);
BOOST_FOREACH( const Config::BlockHandle & handle, blocks )
for( const Config::BlockHandle & handle : blocks )
propTree.add_child( handle.getKey(), configBlockHandleToBoostPropertyTree( handle ) );
return propTree;
......
......@@ -53,7 +53,7 @@
#include "core/mpi/MPIManager.h"
#include "core/Filesystem.h"
#include <boost/foreach.hpp>
#include <random>
#ifdef _MSC_VER
......
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