Skip to content

Commit ecf6a2d

Browse files
committed
fix what we say about C++
1 parent f9321d9 commit ecf6a2d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

text/0000-union-initialization-and-drop.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,11 @@ simple as it gets.
353353
[prior-art]: #prior-art
354354

355355
I do not know of any language combining initialization tracking and destructors
356-
with unions: C++ does not have destructors for unions, and it does not track
357-
whether fields of a data structures are initialized to (dis)allow references or
358-
moves.
356+
with unions: C++ [never runs destructors for fields of unions][cpp_union_drop],
357+
and it does not track whether fields of a data structures are initialized to
358+
(dis)allow references or moves.
359+
360+
[cpp_union_drop]: https://en.cppreference.com/w/cpp/language/union
359361

360362
# Unresolved questions
361363
[unresolved-questions]: #unresolved-questions

0 commit comments

Comments
 (0)