From 82dd8ee4360980cc8d7f8190760c653f609e177e Mon Sep 17 00:00:00 2001 From: SainoNamkho <23036788+SainoNamkho@users.noreply.github.com> Date: Thu, 14 Aug 2025 06:03:50 +0800 Subject: [PATCH 1/2] Typo acc. to CWG2879 --- source/declarations.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/declarations.tex b/source/declarations.tex index 6214e7ef57..f75a22d8a9 100644 --- a/source/declarations.tex +++ b/source/declarations.tex @@ -6296,8 +6296,8 @@ } constexpr int z = f(); // error: not a constant expression -typedef int *A[3]; // array of 3 pointer to \tcode{int} -typedef const int *const CA[3]; // array of 3 const pointer to \tcode{const int} +typedef int *AP[3]; // array of 3 pointer to \tcode{int} +typedef const int *const ACPC[3]; // array of 3 const pointer to \tcode{const int} ACPC &&r = AP{}; // binds directly \end{codeblock} \end{example} From 5c51941243942ec2986158091470207090ef710e Mon Sep 17 00:00:00 2001 From: SainoNamkho <23036788+SainoNamkho@users.noreply.github.com> Date: Thu, 14 Aug 2025 16:01:59 +0800 Subject: [PATCH 2/2] Align comments --- source/declarations.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/declarations.tex b/source/declarations.tex index f75a22d8a9..502fa0fa29 100644 --- a/source/declarations.tex +++ b/source/declarations.tex @@ -6296,8 +6296,8 @@ } constexpr int z = f(); // error: not a constant expression -typedef int *AP[3]; // array of 3 pointer to \tcode{int} -typedef const int *const ACPC[3]; // array of 3 const pointer to \tcode{const int} +typedef int *AP[3]; // array of 3 pointer to \tcode{int} +typedef const int *const ACPC[3]; // array of 3 const pointer to \tcode{const int} ACPC &&r = AP{}; // binds directly \end{codeblock} \end{example}