Fallback 'catch-all' template functions

Marco Leise via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 3 13:57:17 PDT 2016


Am Sat, 3 Sep 2016 02:56:16 -0700
schrieb Walter Bright <newshound2 at digitalmars.com>:

> On 9/3/2016 2:43 AM, Manu via Digitalmars-d wrote:
> > This is interesting. Can you explain how that works?  
> 
> 
> Specializations are preferred over non-specializations, and T:T is the identity 
> specialization.

Pretty cool, I'll try that next time I write templated
overload sets!

-- 
Marco



More information about the Digitalmars-d mailing list