title: How to reduce compile time with C++ templates
body: <p>I'm in the process of changing part of my C++ app from using an older C type array to a templated C++ container class.  See <a href="https://stackoverflow.com/questions/2472944/good-c-array-class-for-dealing-with-large-arrays-of-data-in-a-fast-and-memory-e">this question</a> for details.  While the solution is working very well, each minor change I make to the templated code causes a very large amount of recompilation to take place, and hence drastically slows build time.  Is there any way of getting template code out of the header and back into a cpp file, so that minor implementation changes don't cause major rebuilds?</p>