Fixed compilation on macos

This commit is contained in:
Bartek Kryza
2022-08-08 18:21:08 +02:00
parent e3434bfc59
commit b066348429
9 changed files with 37 additions and 27 deletions

View File

@@ -108,9 +108,9 @@ private:
namespace std {
template <>
struct hash<
std::reference_wrapper<const clanguml::class_diagram::model::class_>> {
std::reference_wrapper<clanguml::class_diagram::model::class_>> {
std::size_t operator()(const std::reference_wrapper<
const clanguml::class_diagram::model::class_> &key) const
clanguml::class_diagram::model::class_> &key) const
{
using clanguml::common::id_t;

View File

@@ -213,9 +213,9 @@ void diagram::get_parents(
bool found_new{false};
for (const auto &parent : parents) {
for (const auto &pp : parent.get().parents()) {
const auto p = get_class(pp.id());
auto p = get_class(pp.id());
if (p.has_value()) {
auto [it, found] = parents.emplace(p.value());
auto [it, found] = parents.emplace(std::ref(p.value()));
if (found)
found_new = true;
}