diff --git a/libuavcan/include/uavcan/util/templates.hpp b/libuavcan/include/uavcan/util/templates.hpp index aa61ca1cb3..9358a73f36 100644 --- a/libuavcan/include/uavcan/util/templates.hpp +++ b/libuavcan/include/uavcan/util/templates.hpp @@ -326,6 +326,16 @@ bool equal(InputIt1 first1, InputIt1 last1, InputIt2 first2) template struct UAVCAN_EXPORT NumericTraits; +/// bool +template <> +struct UAVCAN_EXPORT NumericTraits +{ + enum { IsSigned = 0 }; + enum { IsInteger = 1 }; + static bool max() { return true; } + static bool min() { return false; } +}; + /// char template <> struct UAVCAN_EXPORT NumericTraits