Fonctionnalité de certains langages de programmation informatique orientés objet dans lesquels une classe peut hériter des comportements et des fonctionnalités de plusieurs superclasses ou classes de base.
MSVC, Clang et GCC sont en désaccord sur ce code: struct Base { int x; }; struct Der1 : public Base {}; struct Der2 : public Base {}; struct AllDer : public Der1, public Der2 { void foo() { Der1::Base::x = 5; } }; Godbolt GCC: <source>: In member function …
We use cookies and other tracking technologies to improve your browsing experience on our website,
to show you personalized content and targeted ads, to analyze our website traffic,
and to understand where our visitors are coming from.
By continuing, you consent to our use of cookies and other tracking technologies and
affirm you're at least 16 years old or have consent from a parent or guardian.