This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc question about the embedded type definitions
- From: Serge Fukanchik <fuxx at mail dot ru>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: Wei ZHANG <wei dot zhang-amk at st dot com>, GCC Help <gcc-help at gcc dot gnu dot org>
- Date: Fri, 03 Dec 2004 14:31:09 +0300
- Subject: Re: gcc question about the embedded type definitions
- References: <41B00D06.1050309@st.com> <41B02FC9.3090404@codesourcery.com>
Nathan Sidwell wrote:
in C it is visible, in C++ it is not.
?! In C++ all members of `struct' are public by default
and hence fully accessible. You have to explicitly say `private:'.
On the other side all members of `class' are private by default.
You can not access them unless you say `public:'
---
Serge