Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
inherited
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
//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(); }
cl.exe
Show compiler warnings
[
+
] Compiler args
[
+
]
Show input
Compilation time: 1,64 sec, absolute running time: 0,33 sec, absolute service time: 1,98 sec
edit mode
|
history
|
discussion
foo