3 ms·
I partially agree with "Orthodox C++". Templates should be used only when needed and for turn the code simpler(not like the abomination used in most of Boost li
by OssetianOdin 9y ago
I partially agree with "Orthodox C++". Templates should be used only when needed and for turn the code simpler(not like the abomination used in most of Boost libraries).
But also, i don,t see any sane reason to reinvent the wheel and reimplement basic stuff like thread/mutex classes when the C++ version works well. Or using "NULL" instead "nullptr", or using that pre-processor macro garbage instead templates/constexpr, etc
I think some modern C++ features, that if well used, turn the code much clear and expressive.
- dbartolini 9y agoWhen I started the project C++11 was not supported well on most compilers. I'm fine with new features when they don't limit my freedom. I'm fine with nullptr, it is going to replace NULL very soon.
- sqeaky 9y agoYou should just replace it and define a nullptr macro for older compiles.