Topic: Defect Report: assignment rhs conversion


Author: scott douglass <sdouglass@arm.com>
Date: 2000/10/03
Raw View
 [Moderator's note: this defect report has been forwarded to
 the C++ committee.  -moderator (fjh).]

In 5.17 [expr.ass] it says:
 >>
If the left operand is not of class type, the expression is implicitly
converted (clause 4) to the cv-unqualified type of the left operand.
<<

It's not clear if this sentence applies only to simple assignment (=) or
all assignment operators (= *= /= %= += -= >>= <<= &= ^= |=).  In C (and
all the C++ compilers I have access to) it's clear that the sentence above
only applies to simple assignment.
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]