Fallback 'catch-all' template functions

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 3 04:22:23 PDT 2016


On 2016-09-03 11:56, Walter Bright wrote:

> Specializations are preferred over non-specializations, and T:T is the
> identity specialization.

What if the compiler can prefer template constraint in the same way? 
Then perhaps this workaround could be avoided.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list