Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
calling convention is part of type(?)
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x86 #include <iostream> void __vectorcall f1(int){} void __stdcall f2(int){} void f3(int){} void accept_f(void (__vectorcall *)(int)) { std::cout << "__vectorcall\n"; } void accept_f(void (__stdcall *)(int)) { std::cout << "__stdcall\n"; } // for x86 only /*void accept_f(void (*)(int)) { std::cout << "default\n"; }*/ int main() { accept_f(f1); accept_f(f2); //accept_f(f3); return 0; }
run
|
edit
|
history
|
help
0
accessing private of different type of template
Get parameter type
Overload resolve function pointer
bool behaviour (convertion/promotion) for logical and artihmetic operators
jkljklj
Strings
Printf %px test
MSVC lambda bug
dharmesh
problem_solution_1