I am reusing a class from an old project and it has the following:
Header File
// forward class declarations
class TimeZoneInfo;
class DateTime
{
public:
// constructors
DateTime();
static TimeZoneInfo m_Info;
};
Body File
TimeZoneInfo DateTime::m_Info; <-- Error Here
DateTime::DateTime()
{}
//blah blah
When I go to build this I get the error :
Error: Incomplete type is not allowed:
Why was this working before? (I am now using Visual Studio 2013)
And how can I solve this? Thanks