Browse Source

toString for bool value (true/false)

Eric Ramat 7 years ago
parent
commit
751df798f5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/artis/kernel/Value.hpp

+ 1 - 1
src/artis/kernel/Value.hpp

@@ -113,7 +113,7 @@ public:
                         dynamic_cast < data < T, bool >* >(ptr_);
 
                     if (q_bool) {
-                        return std::to_string(o->*(q_bool->value_));
+                        return o->*(q_bool->value_) ? "true": "false";
                     } else {
                         return "NA";
                     }