Skip to content

Commit 2d99017

Browse files
progtologistAris Synodinos
andauthored
Fix for GCC5 (Ubuntu 16.04 / Kinetic) call to non-constexpr function (#163)
Co-authored-by: Aris Synodinos <[email protected]>
1 parent 72af8bc commit 2d99017

File tree

1 file changed

+4
-4
lines changed
  • core/include/moveit/task_constructor

1 file changed

+4
-4
lines changed

core/include/moveit/task_constructor/stage.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ typedef Flags<InterfaceFlag> InterfaceFlags;
9393
constexpr InterfaceFlags invert(InterfaceFlags f) {
9494
InterfaceFlags inv;
9595
if (f & READS_START)
96-
inv |= WRITES_NEXT_START;
96+
inv = inv | WRITES_NEXT_START;
9797
if (f & WRITES_PREV_END)
98-
inv |= READS_END;
98+
inv = inv | READS_END;
9999
if (f & READS_END)
100-
inv |= WRITES_PREV_END;
100+
inv = inv | WRITES_PREV_END;
101101
if (f & WRITES_NEXT_START)
102-
inv |= READS_START;
102+
inv = inv | READS_START;
103103
return inv;
104104
};
105105

0 commit comments

Comments
 (0)