Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Commit 970b929

Browse files
authored
add copy operator to SafeEnum (#197)
1 parent c311225 commit 970b929

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gazebo_ros2_control/include/gazebo_ros2_control/gazebo_system_interface.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class SafeEnum
4444
: mFlags(original.mFlags) {}
4545
~SafeEnum() = default;
4646

47+
SafeEnum & operator=(const SafeEnum & original) = default;
4748
SafeEnum & operator|=(ENUM addValue) {mFlags |= addValue; return *this;}
4849
SafeEnum operator|(ENUM addValue) {SafeEnum result(*this); result |= addValue; return result;}
4950
SafeEnum & operator&=(ENUM maskValue) {mFlags &= maskValue; return *this;}

0 commit comments

Comments
 (0)