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 +};