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

Random notes on P2008 #44

Open mpusz opened 1 year ago

mpusz commented 1 year ago

P2008R0 was accepted by EWGI and forwarded to EWG at the last F2F meeting in Prague. I was only asked to provide more good motivating examples.

mpusz commented 1 year ago

See the R1 draft with some updates (definitely not ready) here: https://github.com/mpusz/wg21-papers/blob/master/src/2008R1_enable_variable_template_template_parameters.md

mpusz commented 1 year ago

@mhermier might have an implementation experience with this proposal?

mhermier commented 1 year ago

I still have my preliminary work available, that was not updated since last year on llvm compiler. I will try to rebase the git and review the patchset to see how much it differ from the draft.

mpusz commented 1 year ago

Great :-) Please note that the P2008 was merged into the proposal in this repo.

mpusz commented 1 year ago

Interesting quote about the implementability: https://lists.isocpp.org/ext/2017/02/1910.php

mpusz commented 1 year ago

Besides the ones mentioned in R1 draft, here are the use cases that I gathered so far:

mhermier commented 1 year ago

Is the name name variable template parameter kind final? It feels a little bit odd to me. 'variable template template parameter kind' would be more logical to me as it is a 'variable template' as a 'template parameter'.

edit: After reading [13.2] it seems the correct naming would be variable-parameter