Skip to content

Commit de250a4

Browse files
committed
utils.h: added bool_to_string()
1 parent 0fffa31 commit de250a4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/utils.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,4 +337,9 @@ static inline std::string ptr_to_string(const void* p)
337337
#endif
338338
}
339339

340+
static inline std::string bool_to_string(bool b)
341+
{
342+
return b ? "true" : "false";
343+
}
344+
340345
#endif

0 commit comments

Comments
 (0)