atomgalaxy / isocpp-universal-template-param

We propose a way to spell a universal template parameter kind. This would allow for a generic apply and other higher-order template metafunctions, and certain typetraits.
https://atomgalaxy.github.io/isocpp-universal-template-param/d1985r0.pdf
2 stars 2 forks source link

Add example using if constexpr #36

Open BengtGustafsson opened 1 year ago

BengtGustafsson commented 1 year ago

I thought we had this in R3, but apparently it was lost. A pity as now many of our examples will never build as they contain conflicting use of the UTP without guarding by if constexpr, which makes them useless in real code.