class classname;

I have seen in several codes in which it is written like class classname; inside a namespace. What does it means declaring a classname?
I guess you refer to:

1
2
3
4
namespace MyNS
{
    class MyClass;
}


If yes, that's a forward class declaration used to break the need for circular references in header files.
thanks webJose!!
Topic archived. No new replies allowed.