Skip to content

Instantly share code, notes, and snippets.

@hydai
Created February 28, 2016 09:49
Show Gist options
  • Save hydai/20efa2f2074abce78b33 to your computer and use it in GitHub Desktop.
Save hydai/20efa2f2074abce78b33 to your computer and use it in GitHub Desktop.
#include <iostream>
namespace A {
int x = 1;
}
namespace B {
int x = 2;
}
int main() {
std::cout << A::x << " " << B::x << std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment