Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ambiguity does not count as ambiguity
#include <iostream> using namespace std; class Interface { virtual void hej() = 0; }; class Base { public: Base(Interface& i): mI(i) { std::cout << "base constructed\n"; } private: Interface& mI; }; class Derived: public Base, public Interface { public: Derived(): Base(*this) { } virtual void hej() override {} }; int main() { // your code goes here Derived d; return 0; }
run
|
edit
|
history
|
help
0
seh exception
hangman
defined(FOO)
cv5
1337
MSVC bug in __fastcall implementation !!!
Sorting algorithm comparison
Hangman
Insertion vs Sort
hangman