diff --git a/libcxx/include/__ranges/concat_view.h b/libcxx/include/__ranges/concat_view.h index 9e6fc2eeb0592..1862dc481437c 100644 --- a/libcxx/include/__ranges/concat_view.h +++ b/libcxx/include/__ranges/concat_view.h @@ -58,6 +58,9 @@ # pragma GCC system_header #endif +_LIBCPP_PUSH_MACROS +#include <__undef_macros> + _LIBCPP_BEGIN_NAMESPACE_STD #if _LIBCPP_STD_VER >= 26 @@ -133,9 +136,9 @@ concept __all_forward = (forward_range<__maybe_const<_Const, _Views>> && ...); template struct __apply_drop_first; -template -struct __apply_drop_first<_Const, Head, Tail...> { - static constexpr bool value = (sized_range<__maybe_const<_Const, Tail>> && ...); +template +struct __apply_drop_first<_Const, _Head, _Tail...> { + static constexpr bool value = (sized_range<__maybe_const<_Const, _Tail>> && ...); }; template @@ -620,4 +623,6 @@ inline constexpr auto concat = __concat::__fn{}; _LIBCPP_END_NAMESPACE_STD +_LIBCPP_POP_MACROS + #endif // _LIBCPP___RANGES_CONCAT_VIEW_H