Clarification: they are already templates, and I don't think we can easily make
them work by making them special cases of a single, more general template.
However, we can probably factor out the common code with a bit of template
metaprogramming, using Trait classes or something like this.
|