[sv-bc] Re: [sv-ec] overloading an assignment operator

From: Steven Sharp <sharp_at_.....>
Date: Thu Apr 12 2007 - 10:25:20 PDT
The LRM lists the operators that can be overloaded, and it does not
include assignment.  There is other text that indicates that this
was not an oversight.  The LRM only allows overloading of operators
when applied to data types that would otherwise be illegal for them.
Assignment is legal for all data types.  The LRM also explicitly talks
about arithmetic operators, which does not include assignment.  So it
seems quite clear that an assignment operator cannot be overloaded.

Steven Sharp
sharp@cadence.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Apr 12 10:25:40 2007

This archive was generated by hypermail 2.1.8 : Thu Apr 12 2007 - 10:26:13 PDT