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

home
> prog
>> freecpp
>>> class name injection

translate to German (by SYSTRAN)

Class Name Injection

See 9 Classes [class], paragraph 2, of the C++ standard.

> class_name_injection.cpp:

namespace ns
{
const int C = 0;

struct C
{
  C()
  { };
};

struct A
{
  A()
  { }
};
}

struct B
  : public ns::A
{
  B()
    : A()
  { }
};


int main()
{
  B b;

  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.2, cmeerw.org/prog/freecpp/class_name_injection.html
Last modified: Mon Sep 03 18:20:50 2018
Christof Meerwald <cmeerw@cmeerw.org>
XMPP: cmeerw@cmeerw.org