Hacker News new | ask | show | jobs
by jschwartzi 2687 days ago
I try to avoid using STL because it A) throws exceptions, B) has really convoluted type names, and C) dynamically allocates memory. These are all things you avoid in the embedded space.
2 comments

Makes sense for embedded.
Any use of templates has the same problem, including templates that are used to generate highly efficient static constants and non-branching-at-runtime code.
Example?

Templates (template metaprogramming) help to avoid exceptions. You can check invariants first and jump into efficient code.