[C++] Deprecating default arguments on function types

Gabriel Dos Reis gdr@integrable-solutions.net
Mon Jul 21 13:52:00 GMT 2003


Nathan Sidwell <nathan@codesourcery.com> writes:

| Can we deprecate
| 	typedef int (*P) (int = 1);
| 	int f (P p) { return p ();}
| ?

Mark already deprecated something like

   int f(int, int = 0);

   int(*p)(int) = &f;

I think the case you're showing should just be removed for consistency
with the previous deprecation.

-- Gaby



More information about the Gcc mailing list