Rebind template(bug?)

Jack Applegame via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 22 12:09:34 PDT 2016


On Monday, 22 August 2016 at 18:04:43 UTC, Engine Machine wrote:
> How do you seriously think this is cleaner/simpler?
1. No extra encrypted things, such as InstantiateOrEmptySeq
2. Much more understandable.

> You have two classes.
No. I have one template with two specializations. Class template 
and class is not the same thing.

> Their is no uniformity between them.
They have the same name. This is the best uniformity.

> You have uniformity between all the derived classes then have a 
> special case for the base class. A certain easy to follow 
> pattern is set up but needlessly break it for one case. Why?
Because it is the base class. It has no parent. Also this is the 
standard and well known pattern in template metaprogramming.




More information about the Digitalmars-d-learn mailing list