Search code examples
When is reinterpret_cast UB?...


c++language-lawyerc++20undefined-behaviorreinterpret-cast

Read More
Obtaining an integer (long) value representing the address of the current object without UB...


c++undefined-behaviorc++23reinterpret-cast

Read More
How can we reinterpret a double or float as NSUInteger to create hash?...


objective-cxcodereinterpret-cast

Read More
Is reinterpret_cast between unrelated polymorphic types always UB, even if the v-table layouts match...


c++language-lawyerundefined-behaviorreinterpret-casttype-punning

Read More
How to use std::simd as input of SIMD intrinsics functions?...


c++simdintrinsicsreinterpret-castc++23

Read More
Placement new + reinterpret_cast + pointer arithmetic = UB?...


c++language-lawyerundefined-behaviorreinterpret-cast

Read More
How to reinterpret a value as bytes in a compile-time context in C++...


c++templatesconstexprcompile-timereinterpret-cast

Read More
Is casting `the address of a pointer to a struct` to `the address of a struct whos first member is a...


c++undefined-behaviorreinterpret-castpointer-conversion

Read More
Proper way of casting pointer types...


c++pointerscastingreinterpret-caststatic-cast

Read More
Examples using reinterpret_cast that do not trigger UB...


c++undefined-behaviorreinterpret-caststrict-aliasing

Read More
When to use reinterpret_cast?...


c++castingreinterpret-cast

Read More
Reinterpret cast of void * didn't do what I thought it would...


c++reinterpret-cast

Read More
Why doesn't this reinterpret_cast compile?...


c++castingreinterpret-cast

Read More
Why C++ allocators use reinterpret_cast and how to avoid it?...


c++stlc++20allocatorreinterpret-cast

Read More
When does reinterpret_cast violate the law?...


c++reinterpret-castillegal-instruction

Read More
How is reinterpret_cast casting pointer to a different type without creating the object?...


c++pointersreinterpret-cast

Read More
Can I use placement new with class array?...


c++reinterpret-castplacement-new

Read More
Is `reinterpret_cast` to go from derived -> memory -> base safe given the proper static assert...


c++serializationreinterpret-castmemory-layout

Read More
Equivalent of C++'s reinterpret_cast in C#...


c#reinterpret-cast

Read More
Converting from pointer to c-array reference?...


c++arrayspointersreferencereinterpret-cast

Read More
MessageBox Description has only 1 letter...


c++messageboxreinterpret-castlpstrlpwstr

Read More
How do I reinterpret bool as byte/int without branching in C#?...


c#booleanreinterpret-casttype-punningbranchless

Read More
Converting a templated data into another templated data...


c++alignmentreinterpret-casttype-punning

Read More
Why can't I static_cast between char * and unsigned char *?...


c++charreinterpret-caststatic-castunsigned-char

Read More
Call function through pointer with no arguments...


c++function-pointersreinterpret-cast

Read More
Placement new + reinterpret_cast in C++14: well-formed?...


c++language-lawyerundefined-behaviorreinterpret-caststrict-aliasing

Read More
reinterpret_cast<const> casts away const qualifier?...


c++reinterpret-castconst-correctnessfunction-qualifier

Read More
Where can I find what std::launder really does?...


c++c++17reinterpret-castpointer-aliasingstdlaunder

Read More
Is `reinterpret_cast` for pointer and reference conversion completely superceded by features from ne...


c++pointersreinterpret-cast

Read More
Why does reinterpret_cast work in some cases but not others?...


c++dynamic-castreinterpret-cast

Read More
BackNext