help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inheritance scope


From: Maurizio Loreti
Subject: Re: inheritance scope
Date: 26 Nov 2004 21:14:41 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Gav <gav@cs.york.ac.uk> writes:

> hi,
> 
> could someone tell me why this program (which results in a compilation
> error) shouldn't compile (i.e. is it a gcc thing or is it a strict part of
> c++), and how i can make it compile without having to put C:: before foo()
> in main()?
> 
> essentially i want the foo() from A to be overloaded as i would expect if it
> was actually inserted into C.

sheesh.  A: has void foo(void), and B: void foo(int).  I noticed just
now.  sorry.

-- 
Maurizio Loreti                         http://www.pd.infn.it/~loreti/mlo.html
Dept. of Physics, Univ. of Padova, Italy              ROT13: ybergv@cq.vasa.vg


reply via email to

[Prev in Thread] Current Thread [Next in Thread]