3 ms·
Yes, it's the same in C++: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3797.pdf http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n379... §
by microtherion 7y ago
Yes, it's the same in C++: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3797.pdf http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n379...
§ 5.2.2 7 (pg 99):
> When there is no parameter for a given argument [...] If the argument has integral or enumeration type that is subject to the integral promotions (4.5), or a floating point type that is subject to the floating point promotion (4.6), the value of the argument is converted to the promoted type before the call. These promotions are referred to as the default argument promotions.
Sections 4.5 and 4.6 spell out in detail what promotions are applied.