Code

Make BoolParam usable in boolean expressions directly
authorcilix42 <cilix42@users.sourceforge.net>
Wed, 2 Apr 2008 11:21:25 +0000 (11:21 +0000)
committercilix42 <cilix42@users.sourceforge.net>
Wed, 2 Apr 2008 11:21:25 +0000 (11:21 +0000)
src/live_effects/parameter/bool.h

index 400f8cc479628d592d2d3bcc527f3f5d768b85f7..3bf839af84021c8a55279c1d382df9e5e3039481 100644 (file)
@@ -38,6 +38,9 @@ public:
 
     bool get_value() { return value; };
 
+    inline operator bool()
+        { return value; };
+
 private:
     BoolParam(const BoolParam&);
     BoolParam& operator=(const BoolParam&);