Re[3]: Лямбду в WinAPI
От: _nn_  
Дата: 28.03.11 07:48
Оценка: 4 (1)
Здравствуйте, Слава, Вы писали:

С>А во вторых, можешь обяснить причину такого поведения?


По стандарту:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3052.html

Если нет захваченных аргументов, то есть преобразование в указатель на функцию.

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.

http://rsdn.nemerleweb.com
http://nemerleweb.com
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.