Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!tuvie!tuhold!hoelling
From: hoelling@tuhold (Wolfgang Hoellinger)
Newsgroups: comp.lang.c++
Subject: Overload virtual functions?
Keywords: virtual,overload
Message-ID: <1215@tuhold>
Date: 19 Sep 88 10:01:32 GMT
Organization: Institut f. Angewandte Informatik, TU Vienna
Lines: 36



Does anybody outside in the C++-world know the solution for
my problem:

class base {
..
public:  
	virtual void f1();
	virtual void f1(int);
};

class derived: public base {
..
public:
	void f1();
	/* no definition of f1(int) in this class */
}

The Compiler (AT&T C++ Translator, release 1.2 Sun-Wk.1)
does not accept this definition -> 

 > sorry, not implemented: virtual derived::f1() overloaded in base 
   class but not in derived class


My questions are: 

Is there any way to define an overloaded virtual function?
Is this a problem of C++ or just a problem of my compiler?


Wolfgang Hoellinger
Technical University of VIENNA, AUSTRIA
hoelling@tuhold.uucp
mcvax!tuvie!tuhold!hoelling