October 22, 2003 Nested Templates | ||||
---|---|---|---|---|
| ||||
Any plans for nested templates? The following causes " Assertion failure: '0' on line 62 in file 'template.c' ". template foo (T) { template bar (T) { } } int main( char [] [] args ) { instance foo(int) temp; return 1; } In either case, it would be nice to have a better error message, rather then a compilation crash. -Anderson |
October 24, 2003 Re: Nested Templates | ||||
---|---|---|---|---|
| ||||
Posted in reply to J Anderson | That should work. It's a bug. :-( |
Copyright © 1999-2021 by the D Language Foundation