Interesting
I think that this will be possible someday with const generics, when the logic only involves addition and multiplication.
I think too, that this will happen someday with const generics but there are other problems incured by const generics and dispatching, see this thread.