Why can constructor syntax not be used with the “unsigned int” type?

后端 未结 0 893
温柔的废话
温柔的废话 2021-02-11 15:13

Why is the following illegal in C++?

auto x = unsigned int(0);

Whereas the following are all OK:

auto y = int(0);
auto z = unsi         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题