SpiceQA
Questions
Tags
Users
Badges
unions
142 Questions
Newest
Active
Unanswered
Frequent
More
Score
View
Card
Compact
TypeScript Discriminated Union Type with default and type inference
user_1321564
0
•
asked Jan 3, 2019
5
1
1580
typescript
discriminated-union
unions
generics
Handle errors with union
user_8990329
0
•
asked Dec 26, 2018
7
1
786
unions
either
scala
c
Is it wrong to allocate enough memory to a union for just one member?
user_8990329
0
•
asked Dec 22, 2018
3
2
86
language-lawyer
unions
malloc
memory-management
c
Implicitly defined constructor deleted due to variant member, N3690/N4140 vs N4659/N4727
user_6084517
0
•
asked Nov 15, 2018
3
1
924
clang++
language-lawyer
unions
g++
c++
Fields with the same name across different anonymous unions inside one union
user_1608835
0
•
asked Nov 14, 2018
5
1
455
type-definition
language-lawyer
unions
c++
Can we access a member of a non-existing union?
user_5632316
0
•
asked Nov 5, 2018
5
2
275
strict-aliasing
language-lawyer
class-members
unions
c++
Why does a struct, that has another struct wrapped in a union as a member not compile without an explicit default constructor?
user_6211069
0
•
asked Nov 4, 2018
3
1
121
language-lawyer
unions
default-constructor
constructor
c++
Union of layout-compatible types
user_8157187
0
•
asked Oct 29, 2018
14
1
535
standard-layout
c++17
language-lawyer
unions
c++
std::optional implemented as union vs char[]/aligned_storage
user_1453946
0
•
asked Sep 14, 2018
15
2
1849
stdoptional
placement-new
c++17
unions
c++
Is the following C union access pattern undefined behavior?
user_4022617
0
•
asked Sep 12, 2018
10
5
761
type-punning
undefined-behavior
language-lawyer
unions
c
Prev
Prev
7
8
9
(current)
10
11
Next
Next
Hot Questions