diff options
Diffstat (limited to 'include/input/PrintTools.h')
-rw-r--r-- | include/input/PrintTools.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/input/PrintTools.h b/include/input/PrintTools.h index 0ca6fa30ce..0e3fbb1982 100644 --- a/include/input/PrintTools.h +++ b/include/input/PrintTools.h @@ -27,6 +27,9 @@ namespace android { template <size_t N> std::string bitsetToString(const std::bitset<N>& bitset) { + if (bitset.none()) { + return "<none>"; + } return bitset.to_string(); } |