Explorar o código

Added specialized operator<<(bool) in ctkLogStream

Sascha Zelzer %!s(int64=14) %!d(string=hai) anos
pai
achega
b1a0e877e7
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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;