@@ -164,16 +164,6 @@ class BLE {
164
164
*/
165
165
static BLE &Instance ();
166
166
167
- /* *
168
- * Constructor for a handle to a BLE instance (the BLE stack). BLE handles
169
- * are thin wrappers around a transport object (that is, ptr. to
170
- * ble::BLEInstanceBase).
171
- *
172
- * @param[in] transport Ble transport used for the BLE instance.
173
- * @note Cordio supports only one instance.
174
- */
175
- BLE (ble::BLEInstanceBase &transport);
176
-
177
167
/* *
178
168
* Get a reference to the BLE singleton corresponding to a given interface.
179
169
*
@@ -455,6 +445,16 @@ class BLE {
455
445
private:
456
446
friend class ble ::BLEInstanceBase;
457
447
448
+ /* *
449
+ * Constructor for a handle to a BLE instance (the BLE stack). BLE handles
450
+ * are thin wrappers around a transport object (that is, ptr. to
451
+ * ble::BLEInstanceBase).
452
+ *
453
+ * @param[in] transport Ble transport used for the BLE instance.
454
+ * @note Cordio supports only one instance.
455
+ */
456
+ BLE (ble::BLEInstanceBase &transport);
457
+
458
458
/* *
459
459
* Implementation of init() [internal to BLE_API].
460
460
*
@@ -467,8 +467,8 @@ class BLE {
467
467
468
468
private:
469
469
// Prevent copy construction and copy assignment of BLE.
470
- BLE (const BLE &);
471
- BLE &operator =(const BLE &);
470
+ BLE (const BLE &) = delete ;
471
+ BLE &operator =(const BLE &) = delete ;
472
472
473
473
private:
474
474
ble::BLEInstanceBase &transport; /* The device-specific backend */
0 commit comments