This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [C++] Deprecating default arguments on function types
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: gcc at gcc dot gnu dot org, Jason Merrill <jason at redhat dot com>, Mark Mitchell <mark at codesourcery dot com>
- Date: 21 Jul 2003 15:20:24 +0200
- Subject: Re: [C++] Deprecating default arguments on function types
- Organization: Integrable Solutions
- References: <3F1BE5C3.9020300@codesourcery.com>
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