以下是通用(多态)lambda合法C++ 14吗?
auto f = [](auto x[3]) {
x[0];
x[1];
// etc.
};
Run Code Online (Sandbox Code Playgroud)
GCC和Clang 4接受代码,但Visual Studio 2017不接受.这合法吗?
error C3318: 'auto [3]': an array cannot have an element type that contains 'auto'
Run Code Online (Sandbox Code Playgroud)