Template constraints and opAdd

bearophile bearophileHUGS at lycos.com
Mon Jul 1 17:01:47 PDT 2013


John:

> 	Mass!(T,S) opAdd(Mass!(T,S) other) {

If you are using D2 then don't use opAdd, use opBinary:

http://dlang.org/operatoroverloading.html#Binary

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list