This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Add corollary extension
- From: Oleg Endo <oleg dot endo at t-online dot de>
- To: "Rick C. Hodgin" <foxmuldrster at yahoo dot com>
- Cc: gcc <gcc at gcc dot gnu dot org>
- Date: Fri, 29 Jun 2012 00:14:40 +0200
- Subject: Re: Add corollary extension
- References: <bmk14xjauqmik9hfdsk5i6fv.1340921309486@email.android.com>
On Thu, 2012-06-28 at 18:08 -0400, Rick C. Hodgin wrote:
> How would you handle:
>
> isSystemClosed = true;
By adding one line to inv_bool....
struct inv_bool {
bool& b;
operator bool() const { return !b; }
inv_bool& operator = (bool _b) { b = !_b; return *this; }
};
Cheers,
Oleg