Здравствуйте. Не могу понять почему в приведенном примере компилятор ругается, на строку "str Test::testfunc()" (error: ‘str’ does not name a type).
//File: Test.h
class Test
{
public:
struct str
{
int i;
int j;
};
private:
str testfunc();
};
//File: Test.cpp
#include "Test.h"
str Test::testfunc()
{
}