According to the paragraph 5.1.2 "Lambda expressions" p.6 of the C++ 2011 Standard "The closure type for a lambda-expression with no lambda-capture has a public non-virtual non-explicit const conversion function to pointer to function having the same parameter and return types as the closure type’s function call operator. The value returned by this conversion function shall be the address of a function that, when invoked, has the same effect as invoking the closure type’s function call operator."However the VC++ 2010 compiler issues error "error C2440: инициализация: невозможно преобразовать "`anonymous-namespace'::<lambda0>" в "void (__cdecl *)(int)" Для выполнения данного преобразования нет доступного оператора преобразования, определенного пользователем, или вызов оператора невозможен"
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...