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

后端 未结 0 398
别跟我提以往
别跟我提以往 2021-02-11 14:48

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         


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