mirror of
https://github.com/eclipse/upm.git
synced 2025-03-14 20:47:30 +03:00
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:
parent
2c17998ac9
commit
86e8471cad
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user