Explicit Type Conversion and Multiple Simple Type Specifiers

后端 未结 4 1394
执笔经年
执笔经年 2020-12-03 12:38

To value initialize an object of type T, one would do something along the lines of one of the following:

T x = T();
T x((T()));
<
4条回答
  •  清歌不尽
    2020-12-03 12:59

    In §7.1.5.2, keep reading down to table 7, which has the full list of what's allowed as a simple specifier (which does include "unsigned int").

提交回复
热议问题