4 ms·
In your string example (and in RTOS/C++ programming in general) couldn't you just change the default allocator to not use heap memory ? Then continue using std:
by digler999 10y ago
In your string example (and in RTOS/C++ programming in general) couldn't you just change the default allocator to not use heap memory ? Then continue using std::whatever ? of course you'd have to keep a very close eye on your memory pool, but wouldn't this be one way to solve the problem ?
- pjc50 10y agoQuite a lot of embedded architects would say that allocation should never happen at all. That rules out the STL and much modern C++ style.