Medium
One name, two namespaces
What happens when this program is compiled?
main.cpp
#include <iostream>
namespace ns {
struct Widget {};
void process(Widget) { std::cout << "ns::process\n"; }
}
void process(ns::Widget) { std::cout << "::process\n"; }
int main() {
ns::Widget w;
process(w);
}43 of 117 in C++