Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
overloading
//clang 3.8.0 #include <iostream> class Foo { }; class Bar { }; void play(Foo x) { std::cout << "Make a sandwich.\n"; } void play(Bar x) { std::cout << "Make an origami sculpture.\n"; } int main() { Foo y; Bar z; play(y); play(z); }
run
|
edit
|
history
|
help
0
pointer to complete array does not convert implicitly to pointer to array of unknown bound
Access to temporary object
Range List for C++
Example
Dequeue Array-Based Example
Heap: insert and deleteMin() Implementations
Pure virtual function called!
Alloc
Test3
using directives: qualified lookup rules are different from unqualified lookup rules