Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Houman Mirzaalian Dastjerdi
waLBerla
Commits
9d152160
Commit
9d152160
authored
Jun 01, 2018
by
Christian Godenschwager
Browse files
Remove BOOST_FOREACH macro and replace range-based for
parent
628be35f
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/core/Environment.cpp
View file @
9d152160
...
...
@@ -31,7 +31,6 @@
#include
"core/uid/SUID.h"
#include
<boost/algorithm/string.hpp>
#include
<boost/foreach.hpp>
#include
<algorithm>
#include
<functional>
...
...
src/core/cell/CellInterval.cpp
View file @
9d152160
...
...
@@ -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
;
...
...
src/core/config/ConfigToBoostPropertyTree.cpp
View file @
9d152160
...
...
@@ -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
;
...
...
tests/geometry/VoxelFileTest.cpp
View file @
9d152160
...
...
@@ -53,7 +53,7 @@
#include
"core/mpi/MPIManager.h"
#include
"core/Filesystem.h"
#include
<boost/foreach.hpp>
#include
<random>
#ifdef _MSC_VER
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment