Library Typedefs are fundamentally broken
Dicebot via Digitalmars-d
digitalmars-d at puremagic.com
Wed Sep 17 10:08:36 PDT 2014
On Wednesday, 17 September 2014 at 16:54:09 UTC, bearophile wrote:
> Dicebot:
>
>> Is anyone aware why this counter appoach was used instead?
>
> It's not sound, it's a hack. Putting unreliable hacks in a
> standard library is very bad. It's even worse than the problems
> that Walter has listed for __COUNT__ (I didn't ask for that
> count in my enhancement request. If you have to copy it's often
> better to copy from Lisp/ML/Ada instead of C++).
>
> Bye,
> bearophile
It is pretty much default technique used any time new template
instance needs to be forced. Sound or not, I am not aware of any
other even remotely reliable library approaches (it works pretty
good for me actually).
More information about the Digitalmars-d
mailing list