Am Wed, 24 Jul 2013 02:13:50 +0200
schrieb Andrej Mitrovic andrej.mitrov...@gmail.com:
On 7/23/13, Johannes Pfau nos...@example.com wrote:
Does anyone know why this code is not working?
http://dpaste.dzfl.pl/b89e7b3f
Add 'static' to getAttribute and it will work. I know, it's weird, and
Does anyone know why this code is not working?
http://dpaste.dzfl.pl/b89e7b3f
It seems calling enum a = __traits(getAttributes, Class.member); is OK
without an instance. But if I wrap the __traits call into another
template with alias parameter like this:
---
auto getAttribute(alias
On 7/23/13, Johannes Pfau nos...@example.com wrote:
Does anyone know why this code is not working?
http://dpaste.dzfl.pl/b89e7b3f
Add 'static' to getAttribute and it will work. I know, it's weird, and
I've seen this sort of workaround used before. I think it's a compiler
bug.