A
Alex Vinokur
--- File foo.cpp ---
class Foo
{
private:
enum Eoo { aaa, bbb, ccc };
struct Soo
{
Eoo m_code;
};
};
int main()
{
Foo f;
return 0;
}
--------------------
Compiler Green Hills C++ Version 4.0.6 produces the following error:
"foo.cpp", line 7: error #265-D: enum "Foo::Eoo" is inaccessible
Eoo m_code;
^
Compiler Microsoft C++ Version 13.10.3077 (Visual C++ 7.1) has no
problem with that code.
Which is correct?
Alex Vinokur
email: alex DOT vinokur AT gmail DOT com
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn
class Foo
{
private:
enum Eoo { aaa, bbb, ccc };
struct Soo
{
Eoo m_code;
};
};
int main()
{
Foo f;
return 0;
}
--------------------
Compiler Green Hills C++ Version 4.0.6 produces the following error:
"foo.cpp", line 7: error #265-D: enum "Foo::Eoo" is inaccessible
Eoo m_code;
^
Compiler Microsoft C++ Version 13.10.3077 (Visual C++ 7.1) has no
problem with that code.
Which is correct?
Alex Vinokur
email: alex DOT vinokur AT gmail DOT com
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn