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
fc9ff0ce
Commit
fc9ff0ce
authored
Oct 21, 2016
by
Max Lyon
Browse files
minor coding style change
parent
122b292b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenVolumeMesh/Core/Iterators.hh
View file @
fc9ff0ce
...
...
@@ -142,14 +142,14 @@ using is_ovm_iterator = std::is_base_of<BaseIterator<typename std::remove_const<
// so we can use range-for, e.g. for(const auto &vh: mesh.vertices()) works.
template
<
class
I
>
typename
std
::
enable_if
<
is_ovm_iterator
<
I
>::
value
,
I
>::
type
begin
(
const
std
::
pair
<
I
,
I
>
&
iterpair
)
begin
(
const
std
::
pair
<
I
,
I
>&
iterpair
)
{
return
iterpair
.
first
;
}
template
<
class
I
>
typename
std
::
enable_if
<
is_ovm_iterator
<
I
>::
value
,
I
>::
type
end
(
const
std
::
pair
<
I
,
I
>
&
iterpair
)
end
(
const
std
::
pair
<
I
,
I
>&
iterpair
)
{
return
iterpair
.
second
;
}
...
...
src/Unittests/unittests_iterators.cc
View file @
fc9ff0ce
...
...
@@ -26,8 +26,8 @@ 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
())
{}
const
auto
&
constref
=
mesh_
;
for
(
const
auto
&
vh
:
constref
.
vertices
())
{}
for
(
const
auto
&
vh
:
mesh_
.
vertices
())
{}
const
auto
&
constref
=
mesh_
;
for
(
const
auto
&
vh
:
constref
.
vertices
())
{}
}
#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