1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
namespace A{ void foo(int){} } namespace B{ void foo(bool){} } void bar() { using B::foo; using A::foo; foo(true); } namespace Foo { template<class N> void Hello(N) {} } int main() { using Foo::Hello; Hello(4); bar(); }