Template constraints and opAdd

bearophile bearophileHUGS at lycos.com
Mon Jul 1 18:24:02 PDT 2013


John:

> Mass!(T,S) opBinary(alias operator)(Mass!(T,S) other) {
> Mass!(T,S) opBinary(alias operator, O)(Mass!(O,S) other) if 
> (!is(O == T)) {

Isn't operator better as string?

----------------------

anonymous:

> You can't overload non-templates with templates,

I think it was recently fixed in Git.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list