www.digitalmars.com         C & C++   DMDScript  

c++ - [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?
Jul 15 2004