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

make_unique CTAD example #30

Closed BengtGustafsson closed 2 years ago

BengtGustafsson commented 2 years ago

Found an interesting example in a long forgotten repo clone. It allows:

auto p = std::make_unique(1, "hej"s);

This also starts the revision history list (with the risk of it becoming too detailed).