On 2014-04-08 15:37, Matej Nanut wrote:
On 8 April 2014 22:11, captaindet<[email protected]> 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.