3 ms·
> Even with templates you could split of declaration and implementation. No, you can't. The only case where the declaration of template functions/classes can
by geezerjay 8y ago
> Even with templates you could split of declaration and implementation.
No, you can't. The only case where the declaration of template functions/classes can be separated from definitions is in the rare cases where only a fixed and predetermined set of objects/values are used, thus enabling explicit instantiation.
- josefx 8y agoAnd it is not possible to leave that choice to the user? Sometimes I wouldn't mind explicitly instantiating the few variations I need if it meant faster compile times for the remaining files.