for fun, if questionable - a heisenbug

captaindet 2krnk at gmx.net
Tue Apr 8 14:52:50 PDT 2014


On 2014-04-08 15:37, Matej Nanut wrote:
> On 8 April 2014 22:11, captaindet<2krnk at gmx.net>  wrote:
>> [...]
>
> I noticed it works if you move the enum declaration above the
> instantiation of template valid.

yes, it requires certain conditions to (dis)appear. those i could figure out are in the bug report ( https://d.puremagic.com/issues/show_bug.cgi?id=12541 ). also, of course, if the _traits method is not templated, it always compiles fine. unfortunately, if you want to apply meta stuff on arbitrary/other ppls code, you don't have the luxury of moving declarations around.





More information about the Digitalmars-d mailing list