From eb7444aa5b9731515325a21cbe2500ad2441769a Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Sat, 29 Jul 2023 13:06:04 +0800 Subject: [PATCH] [intro.object] Mention the assumption in the example --- source/basic.tex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/basic.tex b/source/basic.tex index 3afdade1f0..df7f95fefc 100644 --- a/source/basic.tex +++ b/source/basic.tex @@ -3207,6 +3207,8 @@ \end{note} \begin{example} \begin{codeblock} +// assumes that \tcode{sizeof(int)} is equal to 4 + template struct AlignedUnion { alignas(T...) unsigned char data[max(sizeof(T)...)];