Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenVolumeMesh
OpenVolumeMesh
Commits
6093bad8
Commit
6093bad8
authored
Oct 26, 2016
by
Max Lyon
Browse files
Merge branch 'mheistermann/OpenVolumeMesh-fix-warning-rangefor-test'
parents
f454de50
bee69486
Pipeline
#3365
passed with stage
in 3 minutes and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/Unittests/unittests_iterators.cc
View file @
6093bad8
...
...
@@ -26,8 +26,9 @@ TEST_F(HexahedralMeshBase, HexVertexIterTest) {
TEST_F
(
HexahedralMeshBase
,
RangeForTest
)
{
// no EXPECTs here, if it compiles, it'll work.
generateHexahedralMesh
(
mesh_
);
for
(
const
auto
&
vh
:
mesh_
.
vertices
())
{}
VertexHandle
_dummy
;
// use vh to avoid compiler warnings
for
(
const
auto
&
vh
:
mesh_
.
vertices
())
{
_dummy
=
vh
;}
const
auto
&
constref
=
mesh_
;
for
(
const
auto
&
vh
:
constref
.
vertices
())
{}
for
(
const
auto
&
vh
:
constref
.
vertices
())
{
_dummy
=
vh
;
}
}
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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