<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Yes, not only does it apply only to lvalue expressions, it only applies with lvalue-to-rvalue conversion, which happens less often in C++ — and when applied to class types, it gets short-circuited to a copy constructor call.<div><br></div><div>All the examples in the DR refer to lvalue-to-rvalue conversion applied by the comma operator, which doesn’t happen in C++ because value category tends to propagate. Analogous arguments can be formed by replacing them with <font face="Courier">static_cast</font> to non-reference types. In C++ this unambiguously creates new objects with unique addresses, so type punning by <font face="Courier">static_cast</font> is either OK for trivially copyable unions (N3797 §12.8/16), or dependent on the copy constructor.</div><div><br></div><div>I think it would be better to fill the role of effective type with a concept orthogonal to lvalue-to-rvalue conversion.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>- D</div><div><br></div><div><br></div><div><div><div>On Feb 22, 2014, at 1:10 AM, Gabriel Dos Reis &lt;<a href="mailto:gdr@microsoft.com">gdr@microsoft.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<br><br>The recent (and ongoing) discussion on the lifetime of objects of type at the intersection of C and C++ (what we used to call POD) looked at various aspects of &nbsp;C's notion 'effective type'. &nbsp;Here is one defect filled against it:<br><br> &nbsp;&nbsp;<a href="http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1762.htm">http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1762.htm</a><br><br>Please note that it is for the C committee to decide. &nbsp;I am mentioning it here only to the extent that 'effective type' is part of what we are looking at.<br><br>-- Gaby<br><br>_______________________________________________<br>ub mailing list<br><a href="mailto:ub@isocpp.open-std.org">ub@isocpp.open-std.org</a><br><a href="http://www.open-std.org/mailman/listinfo/ub">http://www.open-std.org/mailman/listinfo/ub</a><br></blockquote></div><br></div></body></html>