diff --git a/cruft/util/ranges/chunk.hpp b/cruft/util/ranges/chunk.hpp index 0dbc90f9..d4aae95a 100644 --- a/cruft/util/ranges/chunk.hpp +++ b/cruft/util/ranges/chunk.hpp @@ -219,16 +219,9 @@ namespace cruft::ranges { template chunk_view (R&&, std::ranges::range_difference_t) -> chunk_view>; - // HACK: clang#18 does not expose range_adaptor_closure, so we dig into the internals. -#if defined(COMPILER_GCC) -#define _CRUFT_RANGE_ADAPTOR_BASE std::ranges::range_adaptor_closure -#elif defined(COMPILER_CLANG) -#define _CRUFT_RANGE_ADAPTOR_BASE std::__range_adaptor_closure -#endif - namespace detail { - struct chunk_closure_t : _CRUFT_RANGE_ADAPTOR_BASE { + struct chunk_closure_t : std::ranges::range_adaptor_closure { int n; template