Skip to content

Commit

Permalink
fix what we say about C++
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Oct 13, 2018
1 parent f9321d9 commit ecf6a2d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions text/0000-union-initialization-and-drop.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,11 @@ simple as it gets.
[prior-art]: #prior-art

I do not know of any language combining initialization tracking and destructors
with unions: C++ does not have destructors for unions, and it does not track
whether fields of a data structures are initialized to (dis)allow references or
moves.
with unions: C++ [never runs destructors for fields of unions][cpp_union_drop],
and it does not track whether fields of a data structures are initialized to
(dis)allow references or moves.

[cpp_union_drop]: https://en.cppreference.com/w/cpp/language/union

# Unresolved questions
[unresolved-questions]: #unresolved-questions
Expand Down

0 comments on commit ecf6a2d

Please sign in to comment.