Run Code
|
API
|
Code Wall
|
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
Problem_rstring_1
parantheses matching using stack in C++ - test
const reference life time extension
#22.2
Removing __unaligned specifier partial solution
cv2
throwing std::function on MSVC is dangerous
C++ move/copy constructor and assignment demo
c++
Zero