Re: gcc question about the embedded type definitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Serge Fukanchik wrote:
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:'.

you have to qualify their names -- they are not visible in the global namespace. The question was about their visibility not their accessibility.


nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@xxxxxxxxxxxxxxxx    ::     http://www.planetfall.pwp.blueyonder.co.uk


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux