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
OpenMesh
OpenMesh
Commits
5ee25a5a
Commit
5ee25a5a
authored
Aug 11, 2016
by
Janis Born
Browse files
fix CirculatorT type-pun warning on GCC6
(fixes
#28
)
parent
cb5bc2b2
Pipeline
#2405
passed with stage
in 70 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/OpenMesh/Core/Mesh/CirculatorsT.hh
View file @
5ee25a5a
...
...
@@ -314,13 +314,15 @@ class GenericCirculatorT : protected GenericCirculatorBaseT<Mesh> {
/// Standard dereferencing operator.
value_type
operator
*
()
const
{
// We can't use this due to a GCC6 compiler bug
const
GenericCirculatorBaseT
<
Mesh
>*
self
=
this
;
#ifndef NDEBUG
assert
(
this
->
heh_
.
is_valid
());
value_type
res
=
(
this
->*
Handle2Value
)();
value_type
res
=
(
self
->*
Handle2Value
)();
assert
(
res
.
is_valid
());
return
res
;
#else
return
(
this
->*
Handle2Value
)();
return
(
self
->*
Handle2Value
)();
#endif
}
...
...
@@ -498,13 +500,15 @@ class GenericCirculatorT_DEPRECATED : protected GenericCirculatorBaseT<Mesh> {
/// Standard dereferencing operator.
value_type
operator
*
()
const
{
// We can't use this due to a GCC6 compiler bug
const
GenericCirculatorBaseT
<
Mesh
>*
self
=
this
;
#ifndef NDEBUG
assert
(
this
->
heh_
.
is_valid
());
value_type
res
=
(
this
->*
Handle2Value
)();
value_type
res
=
(
self
->*
Handle2Value
)();
assert
(
res
.
is_valid
());
return
res
;
#else
return
(
this
->*
Handle2Value
)();
return
(
self
->*
Handle2Value
)();
#endif
}
...
...
Write
Preview
Markdown
is supported
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