Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!tdatirv!sarima From: sarima@tdatirv.UUCP (Stanley Friesen) Newsgroups: comp.lang.c++ Subject: Re: Overloaded Function Ambiguity Resolution Problems Message-ID: <171@tdatirv.UUCP> Date: 12 Mar 91 17:51:13 GMT References: <1991Feb27.204841.14690@world.std.com> <1991Mar8.105837.15493@tukki.jyu.fi> <1991Mar8.165325.22778@world.std.com> <1991Mar12.084906.28195@tukki.jyu.fi> Reply-To: sarima@tdatirv.UUCP (Stanley Friesen) Organization: Teradata Corp., Irvine Lines: 14 In article <1991Mar12.084906.28195@tukki.jyu.fi> sakkinen@jytko.jyu.fi (Markku Sakkinen) writes: >A very typical situation would be one in which a base class defines >an overloaded function for some argument types and a derived class >would like to add versions for some additional argument types. >The hiding rule makes this impossible. No it doesn't, it just makes it non-trivial, and introduces a slight window for errors. To accomplish the addition of a new overloaded member function in a derived class you just redefine the entire set in the derived class, all of them but the new one can be inline functions that simply call the parent's function (no additional overhead). -- --------------- uunet!tdatirv!sarima (Stanley Friesen)