Many C++ features are very slow to compile, especially templates.
A quick compiling C++ project is most likely extremely conservative in its use of C++ (vs C) features.
That's just false. Templates are not slow to compile at all, and you can selectively pick TUs where they're instantiated.
My entire VRSFML codebase compiles from scratch in ~4s and I liberally use C++ features, I just avoid the Standard Library most of the time.
Templates are not inherently slow, people just don't know how to use them and don't know how to control instantiation.
Most people still think that templates have to go in header files, which is also just plainly false.
That's just false. Templates are not slow to compile at all, and you can selectively pick TUs where they're instantiated.
My entire VRSFML codebase compiles from scratch in ~4s and I liberally use C++ features, I just avoid the Standard Library most of the time.
Templates are not inherently slow, people just don't know how to use them and don't know how to control instantiation.
Most people still think that templates have to go in header files, which is also just plainly false.