Skip to content

Instantly share code, notes, and snippets.

@fortheday
Created January 27, 2018 06:20
Show Gist options
  • Select an option

  • Save fortheday/29ca1a1138b9be223a2efb962a2d4482 to your computer and use it in GitHub Desktop.

Select an option

Save fortheday/29ca1a1138b9be223a2efb962a2d4482 to your computer and use it in GitHub Desktop.
namespace Level0
{
namespace Level1
{
int e_Year = 2018;
}
inline namespace Group1
{
int e_Month = 1;
}
}
namespace LV1 = Level0::Level1;
void NamespaceTest()
{
int &rYear = LV1::e_Year;
int &rMonth = Level0::e_Month;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment