Skip to content

Commit 3d39161

Browse files
committed
ci
1 parent 878ad2b commit 3d39161

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

libcxx/include/__ranges/zip_transform_view.h

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
# pragma GCC system_header
4646
#endif
4747

48+
_LIBCPP_PUSH_MACROS
49+
#include <__undef_macros>
4850
_LIBCPP_BEGIN_NAMESPACE_STD
4951

5052
#if _LIBCPP_STD_VER >= 23
@@ -59,11 +61,11 @@ class zip_transform_view : public view_interface<zip_transform_view<_Fn, _Views.
5961
_LIBCPP_NO_UNIQUE_ADDRESS zip_view<_Views...> __zip_;
6062
_LIBCPP_NO_UNIQUE_ADDRESS __movable_box<_Fn> __fun_;
6163

62-
using _InnerView = zip_view<_Views...>;
64+
using _InnerView _LIBCPP_NODEBUG = zip_view<_Views...>;
6365
template <bool _Const>
64-
using __ziperator = iterator_t<__maybe_const<_Const, _InnerView>>;
66+
using __ziperator _LIBCPP_NODEBUG = iterator_t<__maybe_const<_Const, _InnerView>>;
6567
template <bool _Const>
66-
using __zentinel = sentinel_t<__maybe_const<_Const, _InnerView>>;
68+
using __zentinel _LIBCPP_NODEBUG = sentinel_t<__maybe_const<_Const, _InnerView>>;
6769

6870
template <bool>
6971
class __iterator;
@@ -130,7 +132,7 @@ template <bool _Const, class _Fn, class... _Views>
130132
struct __zip_transform_iterator_category_base<_Const, _Fn, _Views...> {
131133
private:
132134
template <class _View>
133-
using __tag = typename iterator_traits<iterator_t<__maybe_const<_Const, _View>>>::iterator_category;
135+
using __tag _LIBCPP_NODEBUG = typename iterator_traits<iterator_t<__maybe_const<_Const, _View>>>::iterator_category;
134136

135137
static consteval auto __get_iterator_category() {
136138
if constexpr (!is_reference_v<invoke_result_t<__maybe_const<_Const, _Fn>&,
@@ -158,8 +160,8 @@ template <move_constructible _Fn, input_range... _Views>
158160
template <bool _Const>
159161
class zip_transform_view<_Fn, _Views...>::__iterator
160162
: public __zip_transform_iterator_category_base<_Const, _Fn, _Views...> {
161-
using _Parent = __maybe_const<_Const, zip_transform_view>;
162-
using _Base = __maybe_const<_Const, _InnerView>;
163+
using _Parent _LIBCPP_NODEBUG = __maybe_const<_Const, zip_transform_view>;
164+
using _Base _LIBCPP_NODEBUG = __maybe_const<_Const, _InnerView>;
163165

164166
friend zip_transform_view<_Fn, _Views...>;
165167

@@ -355,4 +357,6 @@ inline constexpr auto zip_transform = __zip_transform::__fn{};
355357

356358
_LIBCPP_END_NAMESPACE_STD
357359

360+
_LIBCPP_POP_MACROS
361+
358362
#endif // _LIBCPP___RANGES_ZIP_TRANSFORM_VIEW_H

libcxx/test/std/ranges/range.adaptors/range.zip.transform/iterator/compare.pass.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ constexpr bool test() {
123123
int buffer1[1] = {1};
124124
int buffer2[2] = {1, 2};
125125
std::ranges::zip_transform_view v{MakeTuple{}, ForwardSizedView(buffer1), ForwardSizedView(buffer2)};
126-
using View = decltype(v);
127-
static_assert(std::ranges::common_range<View>);
128-
static_assert(!std::ranges::bidirectional_range<View>);
126+
using ZTV = decltype(v);
127+
static_assert(std::ranges::common_range<ZTV>);
128+
static_assert(!std::ranges::bidirectional_range<ZTV>);
129129

130130
auto it1 = v.begin();
131131
auto it2 = v.end();
@@ -154,7 +154,7 @@ constexpr bool test() {
154154

155155
int main(int, char**) {
156156
test();
157-
//static_assert(test());
157+
static_assert(test());
158158

159159
return 0;
160160
}

0 commit comments

Comments
 (0)