Skip to content

Commit 8f3d6ef

Browse files
committed
utils.h: added bool_to_string()
1 parent 6e197d9 commit 8f3d6ef

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
@@ -326,4 +326,9 @@ static inline std::string ptr_to_string(const void* p)
326326
#endif
327327
}
328328

329+
static inline std::string bool_to_string(bool b)
330+
{
331+
return b ? "true" : "false";
332+
}
333+
329334
#endif

0 commit comments

Comments
 (0)