Topic: Re-definition of default template arguments
Author: ***@elsegundoca.ncr.com (Art Kaufmann)
Date: 1997/02/27 Raw View
The following code is a stripped-down version of something that
apparently compiles on some compilers and not on others. The
error is in the re-definition of the default template argument.
This sort of thing is illegal with default function arguments
(even "benign" redefinition is not allowed: [dcl.fct.default]).
Should we not have the same rules for template default arguments?
template<class T, class U = int> class A;
...
template<class T, class U = int> class A {
... body of class A
};
---
Art Kaufmann | Anti-SPAM: Replace the "***" with "afk".
***@ElSegundoCA.NCR.COM |
--------------------------------------------------------------------------------
"... and should anyone actually read this drivel, any knowlege of your actions
will be denied by NCR Corporation"
---
[ comp.std.c++ is moderated. To submit articles: try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]