Say we have a template function that returns the maximum of two values.
template <class T> T& max (T param1, T param2) {...}
It's logical that it would compile into *two completely* separate functions if it's called once with integers, and once with, say, strings.
Then, if this template is included in a .H, the notion of "precompiled header" kind of goes down the drain, doesn't it?
template <class T> T& max (T param1, T param2) {...}
It's logical that it would compile into *two completely* separate functions if it's called once with integers, and once with, say, strings.
Then, if this template is included in a .H, the notion of "precompiled header" kind of goes down the drain, doesn't it?