Hi Jacek, thanks, but I think I implemented all overloaded methods: in the example I gave, base class (NaElem) has 2 (virtual) methods CreateGeometry(NaElem*) and CreateGeometry(void), they are both implemented. The deriving class (NaDetector) implements its own version of CreateGeometry(void) and inherits from its base class CreateGeometry(NaElem*). So, I think, there is no C++ standards violation. Also, the g++ does complain at all, it is only ACLIC which produces these warnings. Best regrads, Ruben On Tue, 23 Jul 2002, Jacek M. Holeczek wrote: > Hi, > I think that what you see originates in the following problem. > If you overloaded a method with a particular "name" and particular > "signature" (I mean set of parameters), you have to write the code for ALL > possible "signatures" of this method (if I remember well, this is written > in the C++ standard - maybe Philippe could comment more on this). > In your example that means that you overload "CreateGeometry(some set of > parameters)", but you did not overload "CreateGeometry (NaElem *)" and > "CreateGeometry ()". And that is why you get the warning from the > compiler. > Best regards, > Jacek. > >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:00 MET