This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: vB() versus vB(void)
- From: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- To: drow at mvista dot com, mec dot gnu at mindspring dot com
- Cc: carlton at kealia dot com, gdb at sources dot redhat dot com
- Date: Tue, 3 Feb 2004 23:02:25 -0500 (EST)
- Subject: Re: vB() versus vB(void)
> First of all, don't draw too many conclusions based on the output of
> drow-cplus-branch. I've been playing with it pretty freely.
Okay. I was checking with you in case you might want to say
"oh no, my code is explicitly supposed to print "vB()", so something
must be wrong."
> Which form is preferable for default constructors? Probably ().
I think "vB()" is better, but I am perfectly happy accepting "vB(void)"
too. Both forms fit the principle that the output of "ptype" conforms
to standard C++.
So I'll go ahead and accept both "vB()" and "vB(void)".
Michael C