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?
std::function / STL usage?
Re: std::function / STL usage?
With arm gcc it supports most stl features (except some thread/mutex related at least)
-
- Posts: 633
- Joined: Thu Dec 19, 2019 1:23 am
Re: std::function / STL usage?
I think these 2 links will clear things up...
https://roboticsbackend.com/arduino-stl-library/
And
https://github.com/mike-matera/ArduinoSTL
Ray
https://roboticsbackend.com/arduino-stl-library/
And
https://github.com/mike-matera/ArduinoSTL
Ray
Re: std::function / STL usage?
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
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