Add corollary extension

Oleg Endo oleg.endo@t-online.de
Thu Jun 28 22:15:00 GMT 2012


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



More information about the Gcc mailing list