Hacker News new | ask | show | jobs
by NCG_Mike 2232 days ago
A couple of things a C++ developer can do is to put template instantiation code into a .cpp file, where possible.

"#pragma once" in the header files helps as does using a pre-compiled header file.

Obviously, removing header files that aren't needed makes a difference too.

1 comments

`pragma once` doesn't do anything that a well-written header guard does.