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?


On Mon, 1 Aug 2011, Jonathan Wakely wrote:

On 1 August 2011 02:42, Ian Lance Taylor wrote:
Jeffrey Walton <noloader@gmail.com> writes:

On Sun, Jul 31, 2011 at 2:40 PM, Ian Lance Taylor <iant@google.com> wrote:
Jeffrey Walton <noloader@gmail.com> writes:

Is there a switch to force everything public?

-Dprivate=public -Dprotected=public

You might also need -Dclass=struct

That one never works, because of: template<class>class X;

(yes, it's a pain to have keywords that are almost equivalent but not quite...)

--
Marc Glisse


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