S
Steven T. Hatton
This footnote appears in the section of the Standard specifying lvalue to
rvalue conversion.
(footnote 49)"In C++ class rvalues can have cv-qualified types (because they
are objects). This differs from ISO C, in which non-lvalues never have
cv-qualified types."
I believe I understand the basics of what it's saying. I could have some
class-type object on the right side of an assignment operator. I'm not
completely sure what the significance of it being cv-qualified is. Is this
related to the kind of thing that happens with std::auto_ptr<> when it
changes state if its owned object is assigned away?
rvalue conversion.
(footnote 49)"In C++ class rvalues can have cv-qualified types (because they
are objects). This differs from ISO C, in which non-lvalues never have
cv-qualified types."
I believe I understand the basics of what it's saying. I could have some
class-type object on the right side of an assignment operator. I'm not
completely sure what the significance of it being cv-qualified is. Is this
related to the kind of thing that happens with std::auto_ptr<> when it
changes state if its owned object is assigned away?