projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cpp-common/bt2c: add `format_as()` functions for `Uuid` and `UuidView`
[babeltrace.git]
/
src
/
cpp-common
/
bt2c
/
fmt.hpp
diff --git
a/src/cpp-common/bt2c/fmt.hpp
b/src/cpp-common/bt2c/fmt.hpp
index 8db4b1b630b88cf731bd0141e4ddd1fd83091990..8af3d71e49ca84f0205fb6f20e112ea84e5a5aed 100644
(file)
--- 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 "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 {
#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 bt2 */
+
+namespace bt2c {
+
+inline std::string format_as(const UuidView uuid)
+{
+ return uuid.str();
+}
+
+} /* namespace bt2c */
This page took
0.023621 seconds
and
4
git commands to generate.