Parcourir la source

Added specialized operator<<(bool) in ctkLogStream

Sascha Zelzer il y a 14 ans
Parent
commit
b1a0e877e7
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      Libs/PluginFramework/service/log/ctkLogStream.h

+ 6 - 0
Libs/PluginFramework/service/log/ctkLogStream.h

@@ -52,6 +52,12 @@ public:
     return *this;
   }
 
+  ctkLogStream& operator <<(bool b)
+  {
+    ts << (b ? "true" : "false");
+    return *this;
+  }
+
 protected:
 
   QString msg;