Browse Source
Explicitly delete the copy constructor and copy assignment operator for IIRFilter to prevent accidental duplication of filter state. Copying an IIRFilter instance could duplicate internal filter state and coefficient references, potentially causing incorrect processing or resource-management problems. Since IIRFilter is not intended to be copied or assigned, prohibit both operations at compile time. 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 4 additions and 0 deletions
Loading…
Reference in new issue