This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB 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: 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


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