Lars, two things:

1/ your exemple did not involve any virtual method, so it is not very
interesting to know that it works :)

2/ In the release note for cxx 6.2 (what I have is 6.1), I found the
following:

    The C++ International Standard permits overriding a virtual member
    function based only on a derived class return type. The current
    release does not support this capability.

So finally, cxx won't allow that. I do not know what CC 5.0 does
however. Did this change allow for significant code simplification, or
was it just for fun and beauty?

JMarc

Reply via email to