kx122: Disable implicit copy/assignment operators

Don't let a KX122 instance be copied since copies would share the C
device pointer.

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck 2018-02-27 09:42:09 -08:00
parent 2c17998ac9
commit 86e8471cad

View File

@ -510,5 +510,9 @@ namespace upm{
private:
//Device context
kx122_context m_kx122;
/* Disable implicit copy and assignment operators */
KX122(const KX122&) = delete;
KX122 &operator=(const KX122&) = delete;
};
}