0
namespace Test {
    struct T {};
    void F(T t) {}
};

int main() {
    Test::T t;
    F(t); // Why no `Test::`?
}

Why there is no need of Test:: before F(t)?

What is the rule behind this?

chaosink
  • 1,329
  • 13
  • 27

0 Answers0