make boolean type unambiguous

"char", "signed char", and "unsigned char"
are distinct types.  Define "boolean" to
be whichever is not "int8" or "uint8".
This commit is contained in:
Michael Davidsaver
2013-07-03 17:25:29 -04:00
parent 73450bdbc7
commit 6900d4bbec
3 changed files with 16 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ using std::min;
namespace epics { namespace pvData {
//template<> const ScalarType PVBoolean::typeCode = pvBoolean;
template<> const ScalarType PVBoolean::typeCode = pvBoolean;
template<> const ScalarType PVByte::typeCode = pvByte;
template<> const ScalarType PVShort::typeCode = pvShort;
template<> const ScalarType PVInt::typeCode = pvInt;
@@ -41,7 +41,7 @@ template<> const ScalarType PVFloat::typeCode = pvFloat;
template<> const ScalarType PVDouble::typeCode = pvDouble;
template<> const ScalarType PVScalarValue<String>::typeCode = pvString;
//template<> const ScalarType PVBooleanArray::typeCode = pvBoolean;
template<> const ScalarType PVBooleanArray::typeCode = pvBoolean;
template<> const ScalarType PVByteArray::typeCode = pvByte;
template<> const ScalarType PVShortArray::typeCode = pvShort;
template<> const ScalarType PVIntArray::typeCode = pvInt;