Const in default function arguments?
Nathan Sidwell
nathan@codesourcery.com
Sat Apr 5 12:24:00 GMT 2003
Eric Lemings wrote:
> That's a bit different. The type of the default argument here
> is T&. In the original post, the type is T.
ok,
class T {...};
void Baz (T = T ());
what's the problem? AFAICT, someone was making the blanket statement
that 'thou shall not have default values for non-constant argument
types'. such a statement is false.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
The voices in my head said this was stupid too
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
More information about the Gcc-help
mailing list