changed the name of the test to assignment (because copy constructing was the problem all the time);
added some confidence tests to see whether messing with one filter screws up the one it was copied from, in case I can't understand the memory management;
moved the reset call into the PoleFilter's constructor: if you copy a filter I reckon it should retain its state unless you explicitly reset() it.
I've also put a reset in the constructor. If you don't it messed up. That said, I can't reproduce that. So delete the call (PoleFilter.h:128) as you think fit.
I've
assignment
(because copy constructing was the problem all the time);PoleFilter
's constructor: if you copy a filter I reckon it should retain its state unless you explicitlyreset()
it.I've also put a reset in the constructor. If you don't it messed up. That said, I can't reproduce that. So delete the call (PoleFilter.h:128) as you think fit.