how to specify vc11 lambda calling convention
问题 I want to pass a lambda function pointer, which nested in a class, to the Windows API callback function. I found there is no place for me to specify the __stdcall keyword. Some people told me the compile only support __cdecl , but after I used nm command to dump the obj file, I found the compile will generate three helper function ( __stdcall , __cdecl , __fastcall ) concurrently. So my problem is, how can I specify the calling convention? Those following code are my test code. #include