Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
the usual name hiding rules do apply with using directives
//clang 3.8.0 #include <iostream> namespace A { void f(int) { std::cout << "A::f(int)\n"; } } namespace B { using namespace A; void f() { std::cout << "B::f()\n"; } void g() { f(0); } // error; works if void f() { ... } is commented out above } int main() { B::f(0); // error; also works if void f() { ... } in B is commented out }
run
|
edit
|
history
|
help
0
ternary test c++14
overloading
marquee text in C++
Access to temporary object
vector destruction - clang
Fundamentos de programación. Tema 7. Ejercicio 6.
Recursive Call Example Sum
C++ Program to Print Binary
std::function copies
problem_name_2