AP_InertialSensor: disable backend's copy constructor

We never want to copy a backend. This protects us of accidentally using
a copy instead of a reference for all subclasses.
This commit is contained in:
Lucas De Marchi 2015-10-01 20:04:04 -03:00
parent a58bb0fc32
commit d3e8e8fd43
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ class AP_InertialSensor_Backend
{
public:
AP_InertialSensor_Backend(AP_InertialSensor &imu);
AP_InertialSensor_Backend(const AP_InertialSensor_Backend &that) = delete;
// we declare a virtual destructor so that drivers can
// override with a custom destructor if need be.