Forward declaring classes in namespaces

Viewed 2584

I was rather surprised to learn that I couldn't forward declare a class from another scope using the scope resolution operator, i.e.

class someScope::someClass;

Instead, the full declaration has to be used as follows:

namespace
{
    class someClass;
}

Can someone explain why this is the case?

UPDATE: To clarify, I am asking why this is the case.

3 Answers
Related