Implementing Template Restrictions in Different Way

monarch_dodra via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Sep 2 04:01:59 PDT 2014


On Monday, 1 September 2014 at 22:46:52 UTC, Nordlöw wrote:
> BTW: Is there a way to prevent the calls to r1.length and 
> r2.length in this case?

Also, this assumes your ranges have front at all. AFAIK, skipOver 
operates on forward ranges. Related: Your condition could fail if 
R1/R2 are strings of un-matching widths.


More information about the Digitalmars-d-learn mailing list