这怎么不编译:
for(size_t i;;)
auto Lambda = [](size_t i) {};
1>application_src\general_experiments.cpp(96): error C2365: 'i' : redefinition; previous definition was 'data variable'
1> application_src\general_experiments.cpp(95) : see declaration of 'i'
...当它编译时:
for(size_t i;;) {
auto Lambda = [](size_t i) {};
}
注意:我使用的是 Visual Studio 2012