Usual arithmetic conversions
From cppreference.com
Many binary operators that expect operands of arithmetic or enumeration type cause conversions and yield result types in a similar way. The purpose is to yield a common type, which is also the type of the result. This pattern is called the usual arithmetic conversions.
Contents |
[edit] Definition
Usual arithmetic conversions are defined as follows:
[edit] Stage 1
Applies lvalue-to-rvalue conversion to both operands, the resulting prvalues are used in place of the original operands for the remaining process.
[edit] Stage 2
|
(since C++11) |
[edit] Stage 3
|