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

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

 



On Sun, Jul 31, 2011 at 2:40 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote:
> Jeffrey Walton <noloader@xxxxxxxxx> 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".
Thanks Ian. But I'm not clear on why a g++ switch is not gcc help
related. GCC does have other visibility related switches (eg,
-Wctor-dtor-privacy).

Jeff



[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