using namespace x::y;
Or namespace y = x::y;
using namespace
doesn't work in my case, thanks for the namespace y = x::y;
solution!
using namespace x;
then you can call y::z();
It causes ambiguities because there are things in namespace x with the same names as things in the current scope, so I cannot use using namespace x;
.