Page 1 of 1

std::function / STL usage?

Posted: Thu May 21, 2020 10:06 am
by Bambo
Hi,

I noticed in the new version of STM32duino version 1.9.0 that in the file WInterrupts.h, the std::function() is used. How does this compile? i thought that Arduino doesn't support STL?

Re: std::function / STL usage?

Posted: Thu May 21, 2020 10:34 am
by stas2z
With arm gcc it supports most stl features (except some thread/mutex related at least)

Re: std::function / STL usage?

Posted: Fri May 22, 2020 1:46 am
by mrburnette

Re: std::function / STL usage?

Posted: Fri May 22, 2020 5:07 am
by fpiSTM
STL usage and std::function can be used since a while with the core:
https://github.com/stm32duino/Arduino_C ... 2/pull/129
https://github.com/stm32duino/Arduino_C ... 2/pull/159
;)

I've fixed that when one of my colleague would like use ArduinoSTL library:
https://github.com/mike-matera/ArduinoSTL/pull/12