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

Merge branch 'remove_boost_foreach' into 'master'

Remove BOOST_FOREACH macro and replace range-based for

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