dumpValue for boolean fix

This commit is contained in:
Matej Sekoranja
2014-08-11 22:09:46 +02:00
parent 3609fd4745
commit f3c0b9544c

View File

@@ -33,7 +33,7 @@ namespace epics { namespace pvData {
template<>
std::ostream& PVScalarValue<int8>::dumpValue(std::ostream& o) const
{
return o << static_cast<int>(get());
return o << static_cast<int>(get());
}
template<>
@@ -41,4 +41,10 @@ namespace epics { namespace pvData {
{
return o << static_cast<unsigned int>(get());
}
template<>
std::ostream& PVScalarValue<boolean>::dumpValue(std::ostream& o) const
{
return o << std::boolalpha << static_cast<bool>(get());
}
}}