no matching function
Alexandre Oliva
aoliva@redhat.com
Sun Feb 11 08:55:00 GMT 2001
On Feb 10, 2001, "Roger Collins" <roger@ProProject.com> wrote:
> The base class constructor gets called automatically. Does the language try
> to find one that matches the derived class constructor signature? Or does
> it just use the default constructor?
the latter.
> Anyway, this explains why there is a call (implied) to the default
> constructor of basic_iostream.
Yep
> If a default constructor isn't defined, doesn't it get created
> automatically?
Not if there are other constructors.
> Does a default basic_iostream make any sense?
It would be non-standard.
> Has it been explicitly defined private to prevent its use?
Nope. It's just that you must explicitly initialize the base class in
the constructors of the derived class, when the base class offers no
default constructor.
If you have further questions about the C++ language, please use a
more appropriate forum. This mailing list is about the development
of GCC, not about learning C++ with GCC.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
More information about the Gcc
mailing list