Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ADL of operator expression & unqualified function call
#include <iostream> struct X { void operator*() const { std::cout << "#1" << std::endl; } }; struct Y { Y(X) {} }; void f(Y) {std::cout << "f(Y)" << std::endl;} template<int> void g() { *X{}; f(X{}); } void f(X) {std::cout << "f(X)" << std::endl;} void operator*(X&&) { std::cout << "#2" << std::endl; } int main() { g<0>(); }
run
|
edit
|
history
|
help
0
infix to postfix v 1.0
cv5
hangman
Test
#7
Multiple inheritance of empty classes - sizeof
dharm1
DCapSurfaceDesc
Copy vs Reference
Templatized Visitor Pattern Example