vB() versus vB(void)

Michael Elizabeth Chastain mec.gnu@mindspring.com
Wed Feb 4 04:02:00 GMT 2004


> 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



More information about the Gdb mailing list