List Question
20 TechQA 2024-03-22T06:41:30.137000In C++ can you use one empty type as storage for another?
161 views
Asked by jacobsa
How to workaround strict aliasing in C?
112 views
Asked by bakaq
Is accessing a struct within a struct by pointers undefined behavior?
176 views
Asked by ReotardoDaVinci
Do we have a Strict Aliasing rule violation?
152 views
Asked by mascai
Aliasing rules and making Rust function "generic over aliasing"
144 views
Asked by Ovinus Real
Does casting a char * to another pointer type break the strict aliasing rule when the memory is from malloc?
201 views
Asked by user22903339
How do initial members, common initial sequences, anonymous unions, and strict aliasing interact in C?
128 views
Asked by nickelpro
When does std::as_writable_bytes trigger undefined behavior
102 views
Asked by Erik Man
Placement new + reinterpret_cast in C++14: well-formed?
228 views
Asked by user1011113
Opt out of `char` exemption to strict aliasing rules
144 views
Asked by Mike Vine
Standard compliant way of swapping bits of two objects in different types
152 views
Asked by user2961927
Is it undefined behavior to access the object representation of a pointer through a char*?
177 views
Asked by Dean Lee
Adversarial test against template generic STL vector pool
141 views
Asked by user2961927
Is the author's cast-based implementation of an optional<bool> well-defined in P2641?
134 views
Asked by Jan Schultke
Do reinterpret_cast double* to unsigned long long* constitue a strict aliasing violation?
112 views
Asked by Fareanor
casting between 2 layout compatible types
69 views
Asked by shrike
upcast and strict aliasing rule from C++20
93 views
Asked by shrike
Correctly using type-punning and erasure for array of objects
166 views
Asked by Oersted
type-punning and strict aliasing rule for array of objects
164 views
Asked by Oersted
Why do compilers miss vectorization here?
477 views
Asked by Alex Guteniev