Will the following code compile?
namespace {
  void Foo() { }
}

namespace {
  void Foo() { }
}
Explanation
No, it won't since the second unnamed namespace in the same compilation unit attempts to override the same function as the first one does.

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты