mirror of https://github.com/ArduPilot/ardupilot
Rover: do not permit copying of a Mode
This commit is contained in:
parent
701d8588cc
commit
ca0374a7af
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue