std::function / STL usage?

Post here first, or if you can't find a relevant section!
Post Reply
Bambo
Posts: 20
Joined: Wed Jan 15, 2020 8:36 pm

std::function / STL usage?

Post 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?

stas2z
Posts: 123
Joined: Mon Feb 24, 2020 8:17 pm
Answers: 8

Re: std::function / STL usage?

Post by stas2z »

With arm gcc it supports most stl features (except some thread/mutex related at least)

mrburnette
Posts: 134
Joined: Thu Dec 19, 2019 1:23 am

Re: std::function / STL usage?

Post by mrburnette »


User avatar
fpiSTM
Posts: 478
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 15
Location: Le Mans
Contact:

Re: std::function / STL usage?

Post 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

Post Reply

Return to “General discussion”