//header file
class Foo
{
public:
struct FooBar {
bool ok;
string msg;
};
};
// .cpp file
Foo::FooBar::FooBar():ok(false), msg("hello")
{}
컴파일하려고 할 때, 나는 얻을 :상자의 클래스의 초기화 목록 질문
오류 : 암시 적 선언 '푸 :: FOOBAR :: FOOBAR()'
바보, 간단한의 정의 범위와 관련된 실수 나는 확신하지만, 그것이 무엇인지 알아낼 수 없다. ...