If I have a class in a namespace, like this:
#ifndef MyClass_h
#define MyClass_h
namespace NyNamespace
{
class MyClass
{
public:
typedef double MyType;
MyType Read();
};
}
#endif
And the implementation:
#include "MyClass.h"
namespace MyNamespace
{
MyClass::MyType MyClass::Read()
{
MyClass::MyType A;
return A;
}
}
I get error: 'MyClass' has not been declared.
Why does this not work?
Thanks!
Dave