I have the following code snippet:
void foo(double a) {} namespace bar_space { struct Bar {}; void foo(Bar a) {} }
foo(double) is a g
However, in your sample code you could use something like that
namespace bar_space { using ::foo; void baz() { Bar bar; foo(5.0); foo(bar); } }