Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
inherited
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x86 #include <iostream> class Foo { public: virtual void print() { std::cout << "foo" << std::endl; } }; class Bar : public Foo { typedef Foo inherited; public: virtual void print() { std::cout << "bar" << std::endl; } }; class Foobar : public Bar { typedef Bar inherited; public: virtual void print() { inherited::inherited::print(); } }; int main() { Foobar foobar; foobar.print(); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
#26.fix
Default constructor - deleted
std::current_exception makes a copy
error_check
div64 inline asm
dharmesh
Double_wrapper vc++
DCapSurfaceDesc
Dynamically sized array at end of struct
Attribute of qi parsers
Please log in to post a comment.