--- a/src/basics.h Fri Jan 01 23:41:55 2016 +0200 +++ b/src/basics.h Sat Feb 13 04:06:49 2016 +0200 @@ -234,3 +234,8 @@ { return false; } + +inline void toggle (bool& a) +{ + a = not a; +}