Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snapshots: fix build on Apple clang 14 #2077

Merged
merged 2 commits into from
Jun 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions silkworm/db/snapshots/common/iterator/map_values_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ auto make_map_values_view(const std::map<TMapKey, TMapValue>& map) {
// std::views::values is not present on clang 15
#if defined(__clang__) && (__clang_major__ <= 15) && !defined(__apple_build_version__)
return MapValuesView<TMapKey, TMapValue>{map};
#elif defined(__clang__) && (__clang_major__ <= 14) && defined(__apple_build_version__) // clang 15 == Apple clang 14
return MapValuesView<TMapKey, TMapValue>{map};
#else
return std::views::values(map);
#endif
Expand Down
Loading