hi there,
because i was in need of a sort function and couldn't get qsort to work as i wanted in a teensy 3.6 project, i stumbled across std::sort.
for that to work i had to include algorithm into my code. the sort works beautifully, however as soon as i include <algorithm> my float calculations in the sketch no longer work correctly, so it seems this include overrides the internal float definitions or what??
is this a known issue? it took me a while to figure it out, because it seemed so far fetched, but as soon as i comment the include out all my float calculations are correct again.
i am puzzled and would sure like some insight
because i was in need of a sort function and couldn't get qsort to work as i wanted in a teensy 3.6 project, i stumbled across std::sort.
for that to work i had to include algorithm into my code. the sort works beautifully, however as soon as i include <algorithm> my float calculations in the sketch no longer work correctly, so it seems this include overrides the internal float definitions or what??
is this a known issue? it took me a while to figure it out, because it seemed so far fetched, but as soon as i comment the include out all my float calculations are correct again.
i am puzzled and would sure like some insight