This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: G++ switch to make everything public in a class?


Jeffrey Walton <noloader@gmail.com> writes:

> Is there a switch to force everything public?

-Dprivate=public -Dprotected=public

> If not, how does one
> typically access the non-public stuff for testing?

There are a variety of techniques, but this is really a general C++
question, not a gcc question.  E.g., search for "c++ testing private
methods".

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]