c++ - auto 的编译器问题?错误 : in a declarator-list 'auto' must always deduce to the same type

标签 c++ visual-studio-2010 visual-c++ c++11 auto

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/

相关文章:

c++ - 将保存数组元素的指针的地址传递给 C++ 中的函数时出错

C++:哪个弱原子用于接收异步的缓冲区。 RDMA 传输?

c++ - 为什么这段代码不能正确读取用户输入?

c++ - 为什么复制省略对形式参数进行异常(exception)处理?

c++ - 使用 C++ AMP 时未命中 GPU 断点

c++ - 使用普通的 severity_level boost 日志 init_from_stream

wpf - 在VS2010中从WAML的XAML窗口中分离设计器

c++ - 如何找到 VC++ v10 中的新增功能?

c# - 从项目 2 的项目 1 中的类调用函数

c++ - 为什么 __m256 而不是 'float' 提供超过 x8 的性能?