Re[2]: C++11, передача Lambda-выражения как параметра
От: vintch  
Дата: 12.01.12 17:50
Оценка: 2 (1)
Здравствуйте, Banned by IT, Вы писали:

BBI>Можно ссылку на пункт стандарта?


BBI>И что то мне кажется что он прав.


Увы, не прав

Источник:
https://connect.microsoft.com/VisualStudio/feedback/details/572138

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


Пруф:
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.