Joseph Mariadassou
Joseph Mariadassou
... besides it is better to use std::rotate rather than implement it as in if (shiftAmount > 0) std::rotate(groupToShift.begin(), groupToShift.end(), groupToShift.end() - shiftAmount); else if (shiftAmount < 0) std::rotate(groupToShift.begin(), groupToShift.end(),...
I stand corrected. list::iterator supports increment/decrement by one only. Besides the actual parameters are in the wrong order. Both minor fixes, if I could tell the purpose of the function.
Closed by mistake
I have a similar problem: using raspicam_still_test if I call grab_retreive 4000 times with a one second delay between two calls, the application hangs after making around 3000 calls.
IN fact why create userdata on the heap?