Skip to content

Commit b780e7c

Browse files
committed
pleasing homebrew clang
1 parent 68a5a0d commit b780e7c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

libmamba/include/mamba/util/synchronized_value.hpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ namespace mamba::util
519519

520520
T m_value{};
521521
mutable M m_mutex{}; // BEWARE: explicit initializers are required to allow
522-
// synchronized_value instances to be `constinit`
522+
// synchronized_value instances to be `constinit` with some compilers
523523
};
524524

525525
/** Locks all the provided `synchronized_value` objects using `.synchronize` and
@@ -546,7 +546,12 @@ namespace mamba::util
546546
///////////////////////////////////////////////////////////////////////////////////////////
547547

548548
template <std::default_initializable T, Mutex M>
549-
constexpr synchronized_value<T, M>::synchronized_value() noexcept(std::is_nothrow_default_constructible_v<T>) = default;
549+
constexpr synchronized_value<T, M>::synchronized_value(
550+
) noexcept(std::is_nothrow_default_constructible_v<T>)
551+
{
552+
// NOTE: non-defaulted because of homebrew/clang compiler not liking the defaulted version
553+
// for some reason
554+
}
550555

551556
template <std::default_initializable T, Mutex M>
552557
synchronized_value<T, M>::synchronized_value(T value) noexcept

0 commit comments

Comments
 (0)