Eric Niebler @ericniebler.com · Dec 19

is there any way at all to suppress this warning on gcc-10? godbolt.org/z/c1Tsd4Pvs and if you are about to reply "why are you writing code like that?" just stop right there. i have reasons.

5 likes 3 replies

?

Replies

Daniel Nikpayuk · Dec 19

I don't know if there's a more direct way, but this is one approach that seems to work: godbolt.org/z/GnvPz8qs9

Darrell · Dec 20

What if you wrap it in std::type_identity_t ? godbolt.org/z/z31n59Pxx

Kenneth Gorking · Dec 20

Use 'typename' instead of 'class'.