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
seh exception in constructor memory leak
C++ standard library formatted input hexadecimal float without prefix or exponent test case
Arrays
dharmesh
MSVC_example_fscanf_s_and_chars_wchars
LinkedList
asock
assignment
const reference life time extension
Rounding in C++