From ab2a52594af623c9ade75b9f018776dd84ad82dd Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Thu, 17 Jun 2021 10:44:14 -0400 Subject: [PATCH] Disallow copy-construction of Device objects. The lifetime of these objects is entirely managed by DeviceController and copy-constructing them does not make any sense. --- src/controller/CHIPDevice.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controller/CHIPDevice.h b/src/controller/CHIPDevice.h index 5469f04b00ebea..9d683a71bda340 100644 --- a/src/controller/CHIPDevice.h +++ b/src/controller/CHIPDevice.h @@ -89,6 +89,8 @@ class DLL_EXPORT Device : public Messaging::ExchangeDelegate, public SessionEsta { public: ~Device(); + Device() = default; + Device(const Device &) = delete; enum class PairingWindowOption {