Questions
Linux
Laravel
Mysql
Ubuntu
Git
Menu
HTML
CSS
JAVASCRIPT
SQL
PYTHON
PHP
BOOTSTRAP
JAVA
JQUERY
R
React
Kotlin
×
Linux
Laravel
Mysql
Ubuntu
Git
New posts in type-punning
C++ access violation in msvc but not gcc for multiple inheritance and cast
Jan 02, 2026
c++
undefined-behavior
virtual-inheritance
memory-layout
type-punning
Is there a best way to deal with undefined behavior in bitwise conversion between floats and integers in C++14, C++17, C++20 and different compilers?
Jan 01, 2026
c++
c++17
c++20
simd
type-punning
Are there any specific types or values for which type-punning produces identical behavior in all Standard-conforming C implementations?
Dec 23, 2025
c
language-lawyer
union
portability
type-punning
Type punning Vs Union member access
Dec 12, 2025
c
unions
type-punning
Need for an intermediate struct in a type punning example with `std::bit_cast`
Dec 11, 2025
c++
strict-aliasing
type-punning
Can unions be used to convert char arrays to float? [duplicate]
Dec 08, 2025
c++
arrays
type-punning
free/delete union malloc/new Array in C/C++
Dec 01, 2025
c++
c
unions
strict-aliasing
type-punning
Display bit pattern of double as hex?
Nov 20, 2025
c++
c
floating-point
double
type-punning
Understanding implicit lifetime creation and aliasing in C++
Oct 29, 2025
c++
clang
language-lawyer
undefined-behavior
type-punning
Aliasing through unions
Oct 29, 2025
c
unions
strict-aliasing
type-punning
gcc: How to use __attribute((__may_alias__)) properly to avoid "derefencing type-punned pointer" warning
Oct 26, 2025
c++
gcc
compiler-warnings
strict-aliasing
type-punning
Is the author's union-based implementation of an optional<bool> well-defined in P2641?
Sep 22, 2025
c++
language-lawyer
unions
type-punning
c++26
Is `reinterpret_cast` actually good for anything?
Sep 14, 2025
c++
casting
c++17
reinterpret-cast
type-punning
How to fill a [u8] array with a repeated u16 value? [duplicate]
Mar 04, 2023
rust
type-conversion
type-punning
rust-no-std
is bit_cast without compiler support for constexpr memcpy possible?
Dec 25, 2022
c++
undefined-behavior
constexpr
c++20
type-punning
Any useful difference between std::bit_cast and std::start_lifetime_as?
Dec 04, 2022
c++
c++-standard-library
c++20
type-punning
union for uint32_t and uint8_t[4] undefined behavior? [duplicate]
Nov 29, 2022
c++
c
unions
strict-aliasing
type-punning
Is there a standards-compliant way to do zero-copy IPC in C++?
Nov 10, 2022
c++
ipc
type-punning
Type punning, char[] and dereferencing
Oct 11, 2022
c++
type-punning
Reusing a float buffer for doubles without undefined behaviour
Apr 23, 2022
c++
strict-aliasing
type-punning
Older Entries »