June 23, 2004 Inner templates? | ||||
---|---|---|---|---|
| ||||
I'd like to do something like this: int f() { enum E { e1 } template X( E e : e.e1 ) { alias int vint; } } but i get the error: test.d(3): found 'template' instead of statement test.d(4): unrecognized declaration Pulling everything out of function scope makes it all work. |
Copyright © 1999-2021 by the D Language Foundation