[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Wierd friend behaviourin g++ 4.1.1
From: |
Paulo Matos |
Subject: |
Re: Wierd friend behaviourin g++ 4.1.1 |
Date: |
16 Jun 2006 08:13:51 -0700 |
User-agent: |
G2/0.2 |
Armel Asselin escreveu:
>
> to be honest your usage of friend seems a bit non-sense to me: friend is to
> make NON MENBER methods (static or not) able to access protected and private
> elements of a class. There you declare bunches of member functions as
> friend: simply remove all these unnecessary 'friend' first. In fact I wonder
> if you expected 'friend' to mean 'static'...
>
I completely agree with you. This code is not mine, I was just trying
to compile it. :-)
This code is from MiniSAT solver 1.14 (google it if you so wish).
Well, I've mailed the authors on this already. Thanks for you oppinion!
Cheers,
Paulo Matos