Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

"nearest enclosing namespace"

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.62 sec, absolute service time: 0,74 sec 
edit mode |  history  | discussion
Error(s):
source_file.cpp:14:20: error: call to 'f' is ambiguous
        void g() { f(); }
                   ^
source_file.cpp:6:10: note: candidate function
    void f() { std::cout << "A::f()\n"; }
         ^
source_file.cpp:9:14: note: candidate function
        void f() { std::cout << "A::B::f()\n"; }
             ^
1 error generated.

        

    
                
λ
.NET NoSQL database for rapid development