From a26770c3d94ea449f1a9c3a9cf19fec28e3691ff Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 9 Sep 2025 13:43:30 +0100 Subject: [PATCH] [meta.type.synop] Remove redundant cast in constant_wrapper declaration The use of `decltype(cw-fixed-value(X))` instead of just `decltype(X)` is a workaround for a GCC bug: https://gcc.gnu.org/PR117392 There's no need for the standard to specify it this way. --- source/meta.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/meta.tex b/source/meta.tex index e848e048f8..d89ce81cf0 100644 --- a/source/meta.tex +++ b/source/meta.tex @@ -169,7 +169,7 @@ template struct @\exposidnc{cw-fixed-value}@; // \expos - template<@\exposidnc{cw-fixed-value}@ X, class = typename decltype(@\exposid{cw-fixed-value}@(X))::@\exposid{type}@> + template<@\exposidnc{cw-fixed-value}@ X, class = typename decltype(X)::@\exposid{type}@> struct constant_wrapper; template