namespace My_lib {
using namespace His_lib; // Everything from His_libusing namespace Her_lib; // Everything from Her_lib
using His_lib::String; // Resolve potential clash in favor of His_libusing Her_lib::Vector; // Resolve potential clash in favor of Her_lib
}
void f(int max) {using namespace Mylib; // Make names from Mylib accessibleStack<int> s1(max); // Use my stackYourlib::Stack s2(max); // Use your stack// ...}
#include <iostream>
using namespace std;
int main() {// There used to be// int left, right;// But not anymore
if (left != right)std::cout << "Excuse me, WHAT?!\n";}