Skip to content

Commit

Permalink
fix clang-format incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
martinus committed Jan 6, 2023
1 parent 2fe91fe commit db89395
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/ankerl/unordered_dense.h
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,10 @@ using detect_reserve = decltype(std::declval<T&>().reserve(size_t{}));
template <typename Mapped>
constexpr bool is_map_v = !std::is_void_v<Mapped>;

// clang-format off
template <typename Hash, typename KeyEqual>
constexpr bool is_transparent_v = is_detected_v<detect_is_transparent, Hash> && is_detected_v<detect_is_transparent, KeyEqual>;
constexpr bool is_transparent_v = is_detected_v<detect_is_transparent, Hash>&& is_detected_v<detect_is_transparent, KeyEqual>;
// clang-format on

template <typename From, typename To1, typename To2>
constexpr bool is_neither_convertible_v = !std::is_convertible_v<From, To1> && !std::is_convertible_v<From, To2>;
Expand Down

0 comments on commit db89395

Please sign in to comment.