summaryrefslogtreecommitdiffstats
path: root/src/format.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/format.hpp')
-rw-r--r--src/format.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/format.hpp b/src/format.hpp
index 9c8341c..f0b0c8e 100644
--- a/src/format.hpp
+++ b/src/format.hpp
@@ -16,6 +16,10 @@ template <typename T> struct GetFormatType
{
};
+template <> struct GetFormatType<bool>
+{
+ static constexpr auto format = "%d";
+};
template <> struct GetFormatType<char>
{
static constexpr auto format = "=%hhd";
OpenPOWER on IntegriCloud