This is the mail archive of the gcc@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: [C++] Deprecating default arguments on function types


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


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