0

I have a simple lambda expression as:

EnumWindows([] (HWND hWnd, LPARAM lparam) -> BOOL {return FALSE;}, 0);

It successfuly is compiled on 64 bit platform but causes following error on 32 bit:

[CLANG Error] Unit3.cpp(15): no matching function for call to 'EnumWindows'
  winuser.h(9766): candidate function not viable: no known conversion from '<lambda at Unit3.cpp:15:14>' to 'WNDENUMPROC' (aka 'BOOL (*)(HWND, LPARAM) __attribute__((stdcall))') for 1st argument

Anybody has an idea?

mh taqia
  • 3,506
  • 1
  • 24
  • 35

0 Answers0