Rover: do not permit copying of a Mode

This commit is contained in:
Peter Barker 2019-01-03 14:07:55 +11:00 committed by Randy Mackay
parent 701d8588cc
commit ca0374a7af
1 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,10 @@ public:
// Constructor
Mode();
// do not allow copying
Mode(const Mode &other) = delete;
Mode &operator=(const Mode&) = delete;
// enter this mode, returns false if we failed to enter
bool enter();