Browse Source
Explicitly delete the copy constructor and copy assignment operator for DeviceSet, which manages device and channel state that should not be duplicated through implicit shallow copies. The implicitly generated copy operations could duplicate internal state and resource references, potentially causing inconsistent device state or invalid resource ownership. Since DeviceSet is not intended to be copied or assigned, prohibit both operations at compile time to prevent unsafe duplication. cppcheck identified the missing copy constructor and assignment operator with its noCopyConstructor and noOperatorEq warnings. Signed-off-by: Robin Getz <rgetz503@gmail.com>chirpmodem-v8.0.0
1 changed files with 2 additions and 0 deletions
Loading…
Reference in new issue