Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
trying to find if reinterpret_cast preserves calling convention
#include <type_traits> #include <iostream> void * (__vectorcall *a)(unsigned); void * (__cdecl *b)(unsigned); using T = decltype(reinterpret_cast<char * (*)(unsigned)>(a)); using U = decltype(reinterpret_cast<char * (*)(unsigned)>(b)); int main() { std::cout << typeid(T).name() << '\n' << typeid(U).name() << std::endl; return 0; }
run
|
edit
|
history
|
help
0
problem_binary_4
Affine Key Finder and Decrypter
Catching divide-by-zero with /EHc
ambiguity does not count as ambiguity
Visual Studio 2015 Compiler Bug: 64bit multiplication
#18
MSVC alias template
du
MSVC noexcept - works
Wide string conversion with multibyte chars and locale + concatenation