Talk:Operators in C and C++: Difference between revisions

Content deleted Content added
Caesar (talk | contribs)
Alignment operators: answering myself
Printz150 (talk | contribs)
Line 319:
 
: Answering myself, the aligment operator of C++ is <code>alignof</code>, according to chapter 3.11, "Alignment", of ISO/IEC 14882:2011. That is also the name of the macro included in the C header <code>stdalign.h</code>. [[User:Caesar|Caesar]] ([[User talk:Caesar|talk]]) 22:19, 7 February 2012 (UTC)
 
== Non-reference return types ==
 
Unless I'm wrong, there's something amiss with the return types of most overloaded binary operators as shown on the page. They return values, not references, but use reference arguments (operands). This means that in their current state as shown on the page, they cannot be used in right-to-left algebraic expressions (e.g.: a + (b + c) will trigger a compiler error, unless (b + c) is stored in a variable first and used as such).--[[User:Printz150|Printz150]] ([[User talk:Printz150|talk]]) 18:58, 25 February 2012 (UTC)