Template argument deduction not working with template specialization
Paul
paultjeadriaanse at gmail.com
Sun Jan 17 20:41:39 UTC 2021
On Sunday, 17 January 2021 at 16:42:27 UTC, Steven Schveighoffer
wrote:
> I've always hated that aspect of specialization. I don't really
> understand why it's valid (how can T be T[]?)
I totally agree with that, that confuses me as well.
> This works:
>
> void TFoo(T : U[], U)(T a)
Oh cool, that's surprising to say the least. Thanks! This indeed
works with argument deduction :)
More information about the Digitalmars-d-learn
mailing list