std::function / STL usage?

Post here first, or if you can't find a relevant section!
Post Reply
Bambo
Posts: 75
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: 131
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: 633
Joined: Thu Dec 19, 2019 1:23 am
Answers: 7

Re: std::function / STL usage?

Post by mrburnette »

User avatar
fpiSTM
Posts: 1746
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
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”