jeudi 22 août 2019

STL smart pointers for embedded

I've been reading up on the STL and am keen to use smart pointers, My concern is that they seem to rely heavily on dynamic allocation and therefore the heap.

My experience on embedded is that you use static allocation on the stack as much as possible, which would prevent the use of smart pointers and all their useful functionality.

Am I missing something here or have my methodology completely wrong?

Btw, I'm focused on the STM32 F4 & H7s

Aucun commentaire:

Enregistrer un commentaire