在回答这个问题时,问题是关键字(自动存储)的传统C含义auto在C++ 0x中是否仍然有效,现在它意味着类型推导.
auto
我记得,旧的含义auto应该保留在相关的地方,但其他人不同意.
auto char c = 42; // either compilation error or c = '*'
看看编译器,我看到了当前的部门.
你知道哪个是正确的行为吗?
c++ standards-compliance c++11
c++ ×1
c++11 ×1
standards-compliance ×1