summaryrefslogtreecommitdiffstats
path: root/src/format.hpp
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2017-05-31 21:10:43 -0400
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-06-19 16:28:05 -0400
commitec2ed2fb324d92573418afcc17365c83373023ec (patch)
treef166bc01eb1c33cf73144fb487629082b5aeb508 /src/format.hpp
parentbabf3b78deb58a2f40e405713f5ceb1485457529 (diff)
downloadphosphor-dbus-monitor-ec2ed2fb324d92573418afcc17365c83373023ec.tar.gz
phosphor-dbus-monitor-ec2ed2fb324d92573418afcc17365c83373023ec.zip
Fix bool and string templates/rendering
Fix a number of bugs related to rendering and instantiation of string and bool templates. Change-Id: Ic75842b4016f4d96bf5850f9c4ad778d82e075ed Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
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