Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
std::is_same doesn't check for calling convention
#include <type_traits> void * (__stdcall *a)(unsigned); void * (__cdecl *b)(unsigned); using T = decltype(reinterpret_cast<char * (*)(unsigned)>(a)); using U = decltype(reinterpret_cast<char * (*)(unsigned)>(b)); int main() { return std::is_same<decltype(a), decltype(b)>::value; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Thing
typeid VC++
hangman
Computing factorial of an integer with recursion and iteration [EDIT]
7
This is the first one
hangman
Static cast of Enum
Say if number is prime and give its factors
Copy elision sample modern C++
Please log in to post a comment.