D
Dylan
If I have a class with a nested struct such as
class MyClass
{
class NestedClass
{};
};
Is it possible to forward declare the nested class in a separate
header file? I want to do something like the following but my compiler
keeps slapping my wrists!
#ifndef SOME_HEADER_H
#define SOME_HEADER_H
class MyClass::NestedClass;
class AnotherClass
{
MyClass::NestedClass* m_pNestedClass;
...
};
#endif
thanks for any help
class MyClass
{
class NestedClass
{};
};
Is it possible to forward declare the nested class in a separate
header file? I want to do something like the following but my compiler
keeps slapping my wrists!
#ifndef SOME_HEADER_H
#define SOME_HEADER_H
class MyClass::NestedClass;
class AnotherClass
{
MyClass::NestedClass* m_pNestedClass;
...
};
#endif
thanks for any help