std::vector<int> vec;
auto i = vec.begin(), j = std::next(i);
Error: in a declarator-list 'auto' must always deduce to the same type
最佳答案
在 Linux 上的 g++ 中编译良好,因此它似乎是一个编译器错误。 Probably this one .
关于c++ - auto 的编译器问题?错误 : in a declarator-list 'auto' must always deduce to the same type,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12922588/