Vote count:
0
The compiler at rextester says it's running clang 3.4, and the clang language support page says that clang 3.4 supports generic lambdas, but I can't get this code to compile:
int main()
{
auto genLambda = [](auto param) {};
}
I'm compiling with -std=c++1y
. Compiling with --version
results in the following, which is why I believe I'm running clang 3.4:
Ubuntu clang version 3.4-1ubuntu1 (trunk) (based on LLVM 3.4)
Target: x86_64-pc-linux-gnu
Thread model: posix
Any idea what I'm doing wrong?
asked 33 secs ago
Aucun commentaire:
Enregistrer un commentaire