Community
Participate
Working Groups
the following code in c++ project (Microsoft Visual Studio Toolchain) results in Semantic Error (Invalid redefinition of call_func (second definition)): #include <iostream> void __cdecl foo () { std::cout << "foo" << std::endl; } void __stdcall bar () { std::cout << "bar" << std::endl; } void call_func ( void (__cdecl * ptr) () ) { std::cout << "calling cdecl func" << std::endl; ptr(); } void call_func ( void (__stdcall * ptr) () ) { std::cout << "calling stdcall func" << std::endl; ptr(); } int main(int argc, char **argv) { call_func(foo); call_func(bar); return 0; }