Search code examples
type-punning: omitting placement new and destructors...

c++placement-newtype-punning

Read More
What, if any, additional UB will bit_cast have beyond memcpy?...

c++c++20type-punningbit-cast

Read More
Does nullptr_t break type punning or pointer conversions?...

clanguage-lawyernullptrtype-punningc23

Read More
Is type-punning through a union unspecified in C99, and has it become specified in C11?...

cc99unionsc11type-punning

Read More
Aware of issues during casting a struct of a sized pointer to its const-equivalent...

ctype-conversionundefined-behaviortype-punning

Read More
Inconsistent results when type punning uint64_t with union and bit-field...

c++c++11structunionstype-punning

Read More
How does C++ strict aliasing work with arrays and dynamically allocated memory?...

c++memorystrict-aliasingtype-punning

Read More
how do I use type punning, without having to use memcpy...

c++type-punning

Read More
Aliasing through unions...

cunionsstrict-aliasingtype-punning

Read More
Type punning in C using union...

clanguage-lawyerunionstype-punning

Read More
Type punning pointers via union...

cunionstype-punning

Read More
In C++ can I treat an array of single-member unions as an array of the element?...

c++c++17language-lawyerunionstype-punning

Read More
How to do type punning correctly in C++...

c++memcpyreinterpret-casttype-punning

Read More
What happens when a pointer to a 32-bit integer is cast to a pointer to a float and dereferenced?...

c++castingfloating-pointtype-punning

Read More
Type punning and Unions in C...

ctype-punning

Read More
C - Type punning, Strict aliasing, and Endianness...

cmemoryundefined-behaviorendiannesstype-punning

Read More
Clang 14 and 15 apparently optimizing away code that compiles as expected under Clang 13, ICC, GCC, ...

c++clangcompiler-optimizationstrict-aliasingtype-punning

Read More
printing the bits of float...

c++floating-pointbitsettype-punning

Read More
When is it safe to re-use memory from a trivially destructible object without laundering...

c++c++17unionsplacement-newtype-punning

Read More
what really mean by Type Punning is an application of union?...

c++unionstype-punning

Read More
Constexpr function returning member of union: g++ vs. clang++: no diagnostics vs. error...

c++language-lawyerconstexprunionstype-punning

Read More
Type punning between `pair<Key, Value>` and `pair<const Key, Value>`...

c++language-lawyertype-punning

Read More
Type punning in a const / static initializer (building a float constant from bits)...

c++type-punning

Read More
Is there a best way to deal with undefined behavior in bitwise conversion between floats and integer...

c++c++17c++20simdtype-punning

Read More
Is it possible to cast a string into its integer/long representation in C?...

cstringassemblyendiannesstype-punning

Read More
Type Punning via constexpr union...

c++visual-studioc++11visual-studio-2017type-punning

Read More
Is it always undefined behaviour to copy the bits of a variable through an incompatible pointer?...

clanguage-lawyerundefined-behaviorstrict-aliasingtype-punning

Read More
gcc: How to use __attribute((__may_alias__)) properly to avoid "derefencing type-punned pointer...

c++gcccompiler-warningsstrict-aliasingtype-punning

Read More
Bit fetching with type punning. Unexpected behaviour...

c++structurebittype-punning

Read More
how do you do a type casting in one line in c?...

cpointerscastingtype-punning

Read More
BackNext