From 2d99017c17381f05bf967980b5c8260d013c0c4d Mon Sep 17 00:00:00 2001 From: Aris Synodinos Date: Wed, 22 Apr 2020 11:48:08 +0200 Subject: [PATCH] Fix for GCC5 (Ubuntu 16.04 / Kinetic) call to non-constexpr function (#163) Co-authored-by: Aris Synodinos --- core/include/moveit/task_constructor/stage.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/include/moveit/task_constructor/stage.h b/core/include/moveit/task_constructor/stage.h index 6961e1a9..9998af5d 100644 --- a/core/include/moveit/task_constructor/stage.h +++ b/core/include/moveit/task_constructor/stage.h @@ -93,13 +93,13 @@ typedef Flags InterfaceFlags; constexpr InterfaceFlags invert(InterfaceFlags f) { InterfaceFlags inv; if (f & READS_START) - inv |= WRITES_NEXT_START; + inv = inv | WRITES_NEXT_START; if (f & WRITES_PREV_END) - inv |= READS_END; + inv = inv | READS_END; if (f & READS_END) - inv |= WRITES_PREV_END; + inv = inv | WRITES_PREV_END; if (f & WRITES_NEXT_START) - inv |= READS_START; + inv = inv | READS_START; return inv; };