July 15, 2004 [bug report] template default argument parsing | ||||
---|---|---|---|---|
| ||||
template< int n = sizeof( char[3 > 2] ) >
// Error: ']' expected
struct A {
};
int main()
{
A<> d1;
A< 0 > d2;
return 0;
}
The template argument probably doesn't make much sense.
bye, Christof
--
http://cmeerw.org JID: cmeerw@jabber.at mailto cmeerw at web.de
...and what have you contributed to the Net?
|
Copyright © 1999-2021 by the D Language Foundation