![]() ![]() ![]() Temporary materialization occurs in the following situations: m // member access expects glvalue as of C++17 // S() prvalue is converted to xvalue Zero_init ( ) : val ( static_cast ( 0 ) ) int i = S ( ). the controlling expression of the switch statement ( T is any integral or enumeration type).integral constant expression, where a literal class is used ( T is any integral or unscoped enumeration type, the selected user-defined conversion function must be constexpr).the argument of the delete-expression ( T is any object pointer type).Note that explicit conversion functions are not considered, even though they are considered in contextual conversions to bool. Such expression e is said to be contextually implicitly converted to the specified type T. ![]()
0 Comments
Leave a Reply. |