The following gives:
"Error: 'a += b' is not a scalar, it is a C"
although UFCS should engage.

-manfred

class C{}
int main(){
  void opOpAssign( string op)( C a, C b){
  }
  C a, b;
  a+= b;
}
  • UFCS Manfred Nowak via Digitalmars-d-learn
    • Re: UFCS Timon Gehr via Digitalmars-d-learn
    • Re: UFCS Jonathan M Davis via Digitalmars-d-learn
    • Re: UFCS Manfred Nowak via Digitalmars-d-learn
    • Re: UFCS via Digitalmars-d-learn

Reply via email to