![]() |
От: | vintch | |
Дата: | 12.01.12 17:50 | ||
Оценка: | 2 (1) |
From the C++0x FCD (N3092 5.1.2/6):
"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."
this language was not present in N3035; it was added very recently, almost right before the launch of Visual Studio 2010,
by proposal N3052: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3052.html