The following code snippet fails to compile: int a[] = {0,1,2,3,4,5,6,7,8,9}; auto b=std::begin(a), e=std::end(a);1> ... error C3538: in a declarator-list 'auto' must always deduce to the same type1> could be 'int *'1> or 'int *'However, this works: int a[] = {0,1,2,3,4,5,6,7,8,9}; auto b=std::begin(a); auto e=std::end(a);This was originally submitted to the c++ user group at comp.lang.c++.moderated and it was concluded that this is a compiler bug.
Visual Studio/Team Foundation Server/.NET Framework Tooling version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Please wait...