4 ms·
RAII is nice—I hope GCC's __attribute__((cleanup)) gets included in C2x. Templates though... are nice, I guess, but the cost in compile time, ABI, code size, a
by PeCaN 11y ago
RAII is nice—I hope GCC's __attribute__((cleanup)) gets included in C2x.
Templates though... are nice, I guess, but the cost in compile time, ABI, code size, and ease of debugging is a lot to swallow.
Besides, with the preprocessor and M4 you can get many of the benefits of templates, albeit with most of the downsides (and a few more to boot).
- ant6n 11y agowell, santaclaus wrote 'generics', not 'templates'. So presumably that means containers like std::vector, or std::unordered_map. Those are pretty easy to deal with.