This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Const in default function arguments?


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 at codesourcery dot com : http://www.cs.bris.ac.uk/~nathan/ : nathan at acm dot org



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]