From cfea6d97e76a932b2c99f18ed439ffbb49c3cbd4 Mon Sep 17 00:00:00 2001 From: Bartek Kryza Date: Wed, 5 Jun 2024 23:06:51 +0200 Subject: [PATCH] Fixed building on macos --- src/common/clang_utils.cc | 3 ++- src/common/types.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/common/clang_utils.cc b/src/common/clang_utils.cc index 7f5d06b3..85fee0aa 100644 --- a/src/common/clang_utils.cc +++ b/src/common/clang_utils.cc @@ -417,7 +417,8 @@ bool is_subexpr_of(const clang::Stmt *parent_stmt, const clang::Stmt *sub_stmt) template <> eid_t to_id(const std::string &full_name) { - return static_cast(std::hash{}(full_name)); + return static_cast( + static_cast(std::hash{}(full_name))); } eid_t to_id(const clang::QualType &type, const clang::ASTContext &ctx) diff --git a/src/common/types.h b/src/common/types.h index d1a250e9..53c203e8 100644 --- a/src/common/types.h +++ b/src/common/types.h @@ -349,6 +349,6 @@ public: template constexpr auto format(clanguml::common::eid_t const &id, Context &ctx) const { - return format_to(ctx.out(), "{}", id.value()); + return fmt::format_to(ctx.out(), "{}", id.value()); } -}; \ No newline at end of file +};