Skip to content

Commit

Permalink
[intro.object] Mention the assumption in the example
Browse files Browse the repository at this point in the history
  • Loading branch information
frederick-vs-ja authored Jul 29, 2023
1 parent b4a9f93 commit eb7444a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/basic.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3207,6 +3207,8 @@
\end{note}
\begin{example}
\begin{codeblock}
// assumes that \tcode{sizeof(int)} is equal to 4

template<typename ...T>
struct AlignedUnion {
alignas(T...) unsigned char data[max(sizeof(T)...)];
Expand Down

0 comments on commit eb7444a

Please # to comment.