---------------
Christof.Meerwald@ freec++.prog

home
> prog
>> freecpp
>>> covariant return

translate to German (by SYSTRAN)

Covariant Return Types

See Relaxing the rules for the return type of overridden functions @ corfield.org.

> covariant_return.cpp:

struct A
{
  virtual A *self();
};

struct B
{
  virtual B *self();
};


int main()
{
  return 0;
}
---------------

This Web page is licensed under the Creative Commons Attribution - NonCommercial - Share Alike License. Any use is subject to the Privacy Policy.

Revision: 1.3, cmeerw.org/prog/freecpp/covariant_return.html
Last modified: Mon Sep 03 18:20:50 2018
Christof Meerwald <cmeerw@cmeerw.org>
XMPP: cmeerw@cmeerw.org