Re: Multiply Defined Inline Constructors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Conley, John H" <JohnH.Conley@xxxxxxxxx> writes:

> class A : public parentA {

> class A: public parentB {

This is a C++ ODR violation.  Your program is undefined.  There is no
reliable way to make this work.  I recommend putting one or both classes
in a namespace.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux