Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenberry committed Aug 10, 2024
1 parent 1bba67c commit 2aa37db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions include/glaze/core/refl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -876,9 +876,7 @@ namespace glz::detail
strings.emplace_back(input_strings[i]);
}

std::ranges::sort(strings, [](const auto& a, const auto& b) {
return a.size() < b.size();
});
std::ranges::sort(strings, [](const auto& a, const auto& b) { return a.size() < b.size(); });

if (strings.front().empty() || strings.back().size() >= 255) {
return {};
Expand Down Expand Up @@ -929,9 +927,9 @@ namespace glz::detail
}

return info;
#else
#else
return {};
#endif
#endif
}

template <class T>
Expand Down
2 changes: 1 addition & 1 deletion include/glaze/json/read.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ namespace glz

constexpr auto type = HashInfo.type;
constexpr auto N = refl<T>.N;

if constexpr (not bool(type)) {
static_assert(false_v<T>, "invalid hash algorithm");
}
Expand Down

0 comments on commit 2aa37db

Please sign in to comment.