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
1
solution_problem4
Build char string (multibyte) with wchar
program_solution_3
Struct packing
ccloader
Initializing member array of structs
#32
MSVC initializer code
C++ standard violation: [templates][explicit instantiation][access checking]