Template arg deduction

Ali Çehreli acehreli at yahoo.com
Wed Jul 7 19:29:15 UTC 2021


On 7/7/21 12:14 PM, Kevin Bailey wrote:

 > fairly simple template argument deduction

It's not the simplest but it is still complicated. :)

 > I guess D can't crack open a type like that?

There are other ways of achieving the same thing the simplest of which 
is probably the following:

void func(B)(B f) {
}

Apparently, there are additional constraints on B, which can be 
expressed in D with some flexibility, pragmatism, and optimism.

Ali



More information about the Digitalmars-d-learn mailing list