using Visual Studio 2014 CTP, C ++ (v140) compiler:
auto gp = [&](BYTE* buff) {
auto gp1 = [](char* bff, char** p1) {
*p1 = strstr((char*)bff, "(");
return (*p1);
};
};
Error:
conditional expression of type 'void' is illegal
(maybe autothere is really a wrong type in there?)
If I declare the inner lambda as std::function<char*(char*, char**)> gp1, then it works
Is there something I'm doing wrong or is this a compiler error?
source
share