6#include <boost/uuid/uuid.hpp>
9#include <userver/utils/fmt_compat.hpp>
11USERVER_NAMESPACE_BEGIN
27std::string
ToString(
const boost::uuids::uuid&);
34struct fmt::formatter<boost::uuids::uuid> {
35 constexpr static auto parse(format_parse_context& ctx) ->
decltype(ctx.begin()) {
return ctx.begin(); }
37 template <
typename FormatContext>
38 auto format(
const boost::uuids::uuid& uuid, FormatContext& ctx) USERVER_FMT_CONST {
39 return fmt::format_to(ctx.out(),
"{}", USERVER_NAMESPACE
::utils
::ToString(uuid
));