You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: english/part1/ch05.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -330,7 +330,7 @@ Contact PhoneNum(int n) {
330
330
\noindent
331
331
It injects an integer into `Contact`.
332
332
333
-
A tagged union is also called a [*variant*]{.keyword #variant}\index{variant}, and there is a very general implementation of a variant in the boost library, `boost::variant`.
333
+
A tagged union is also called a [*variant*]{.keyword #variant}\index{variant}, and there is a very general implementation of a variant in the C++17 standard, `std::variant`.
334
334
335
335
In Haskell, you can combine any data types into a tagged union by separating data constructors with a vertical bar. The `Contact` example translates into the declaration:
0 commit comments