X-Git-Url: https://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fcpp-common%2Fbt2c%2Ffmt.hpp;fp=src%2Fcpp-common%2Fbt2c%2Ffmt.hpp;h=8af3d71e49ca84f0205fb6f20e112ea84e5a5aed;hp=8db4b1b630b88cf731bd0141e4ddd1fd83091990;hb=e05975ebc52dd6811ecdb94b139fba37bddbe77d;hpb=faf0a8c2c7051f8e013308838fcf52856486bb9a diff --git a/src/cpp-common/bt2c/fmt.hpp b/src/cpp-common/bt2c/fmt.hpp index 8db4b1b6..8af3d71e 100644 --- a/src/cpp-common/bt2c/fmt.hpp +++ b/src/cpp-common/bt2c/fmt.hpp @@ -6,6 +6,7 @@ #include "common/common.h" #include "cpp-common/bt2/message.hpp" +#include "cpp-common/bt2c/uuid.hpp" #include "cpp-common/vendor/fmt/format.h" /* IWYU pragma: keep */ namespace bt2 { @@ -16,3 +17,12 @@ inline const char *format_as(const MessageType type) } } /* namespace bt2 */ + +namespace bt2c { + +inline std::string format_as(const UuidView uuid) +{ + return uuid.str(); +} + +} /* namespace bt2c */