Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
using directives: qualified lookup rules are different from unqualified lookup rules
//clang 3.8.0 #include <iostream> namespace A { // To simplify this example, you can comment out this f. void f(int) { std::cout << "A::f()\n"; } namespace B { void f() { std::cout << "A::B::f()\n"; } } namespace C { using namespace B; void g() { f(); } // A::B::f, as A::f takes an int } } int main() { A::C::g(); // Calls A::B::f, because the QUALIFIED lookup rules for using directives // are totally different from the UNQUALIFIED lookup rules! A::C::f(); }
run
|
edit
|
history
|
help
0
SceneGraph Interviewee Task
Recursive Function Calling Example with Stack Addresses
boost::geometry::distance performance overhead compared to a straightforward implementation
test C++ register
my override
le regime keto aviss
Find in vector vs unordered_map
Throttle Example using a circular queue (Push all but 2 less than maxSize; then pop all but 2 of current size)
test string
vf