Simplifying a bit: if a template function is mentioned in the header file, we
must also define it there. So the main way to get rid of code is to avoid
templated public methods, and to keep those that we must have as simple as
possible. (The main thing that pimpl can do is to essentially hide away prive
methods.)
In any case, every step towards simpler *.h files is good, even if it is not a
giant step. :-)
|