From f3c0b9544ce9e81e6f9f412caaf411d629fe672a Mon Sep 17 00:00:00 2001 From: Matej Sekoranja Date: Mon, 11 Aug 2014 22:09:46 +0200 Subject: [PATCH] dumpValue for boolean fix --- src/factory/PVScalar.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/factory/PVScalar.cpp b/src/factory/PVScalar.cpp index fd4b6d5..942cf52 100644 --- a/src/factory/PVScalar.cpp +++ b/src/factory/PVScalar.cpp @@ -33,7 +33,7 @@ namespace epics { namespace pvData { template<> std::ostream& PVScalarValue::dumpValue(std::ostream& o) const { - return o << static_cast(get()); + return o << static_cast(get()); } template<> @@ -41,4 +41,10 @@ namespace epics { namespace pvData { { return o << static_cast(get()); } + + template<> + std::ostream& PVScalarValue::dumpValue(std::ostream& o) const + { + return o << std::boolalpha << static_cast(get()); + } }}