Skip to content

Commit 8fc2944

Browse files
authored
[meta.type.synop] Remove redundant cast in constant_wrapper declaration (#8218)
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. Fixes NB US 79-146 (C++26 CD).
1 parent fb46e16 commit 8fc2944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/meta.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
template<class T>
170170
struct @\exposidnc{cw-fixed-value}@; // \expos
171171

172-
template<@\exposidnc{cw-fixed-value}@ X, class = typename decltype(@\exposid{cw-fixed-value}@(X))::@\exposid{type}@>
172+
template<@\exposidnc{cw-fixed-value}@ X, class = typename decltype(X)::@\exposid{type}@>
173173
struct constant_wrapper;
174174

175175
template<class T>

0 commit comments

Comments
 (0)