Topic: Looking for a section in DWP


Author: Kin Chan <firstian@usa1.com>
Date: 1996/09/26
Raw View

I'm looking for the description of rules for overriding virtual
functions in the DWP, and couldn't find it. The rule I'm looking for it
about the return type of a virtual function. Both in Scott Meyer's book
and Barton and Nackman's book said that the following kind of virtual
function overriding is legal:

class A {
 virtual A* Clone() const;
};

class B: public A {
 virtual B* Clone() const;
};

Does anyone know which section I should look into? I read section 10.3
(??) and it doesn't seem to be there.

[mod note: It has been in paragraph 5 of 10.3 in every issue of the
 DWP at least since the April 1995 publi-release version. - sdc ]

Thanks

Kin Chan



[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]