johnglover / simpl

Simpl is an open source library for sinusoidal modelling written in C/C++ and Python, and making use of Scientific Python (SciPy).
GNU General Public License v3.0
29 stars 2 forks source link

std::rotate #6

Closed burakbayramli closed 1 year ago

burakbayramli commented 1 year ago

I received an error

src/simpl/base.cpp: In member function ‘void simpl::Frame::audio(simpl::sample*, int)’:
/src/simpl/base.cpp:357:14: error: ‘rotate’ is not a member of ‘std’
         std::rotate(_audio, _audio + size, _audio + _size);
              ^~~~~~
src/simpl/base.cpp:357:14: note: suggested alternative: ‘negate’
         std::rotate(_audio, _audio + size, _audio + _size);
              ^~~~~~
              negate

It was fixed after I added #include <algorithm> in base.cpp file