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

@@ -219,7 +219,7 @@ private:
cd, element.get().path().to_string());
while (parent.has_value()) {
parents.emplace(std::ref(parent.value()));
parents.emplace(parent.value());
parent = detail::get<ElementT, DiagramT>(
cd, parent.value().path().to_string());
}

View File

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

View File

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

View File

@@ -115,6 +115,6 @@ template <typename T>
using reference_vector = std::vector<std::reference_wrapper<T>>;
template <typename T>
using reference_set = std::unordered_set<std::reference_wrapper<const T>>;
using reference_set = std::unordered_set<std::reference_wrapper<T>>;
} // namespace clang::common