Skip to content

Commit 4d21877

Browse files
committed
fixup! WIP: [libc++][ranges] Implement ranges::stride_view.
Update module map. Signed-off-by: Will Hawkins <[email protected]>
1 parent 7236c98 commit 4d21877

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

libcxx/include/__cxx03/module.modulemap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,6 +1753,7 @@ module cxx03_std_private_ranges_size [system] {
17531753
export std_private_type_traits_make_unsigned
17541754
}
17551755
module cxx03_std_private_ranges_split_view [system] { header "__ranges/split_view.h" }
1756+
module cxx03_std_private_ranges_stride_view [system] { header "__ranges/stride_view.h" }
17561757
module cxx03_std_private_ranges_subrange [system] {
17571758
header "__ranges/subrange.h"
17581759
export std_private_ranges_subrange_fwd

libcxx/test/std/ranges/range.adaptors/range.stride.view/begin.pass.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ static_assert(HasOnlyConstBegin<std::ranges::stride_view<SimpleCommonConstView>>
4646
static_assert(HasConstAndNonConstBegin<std::ranges::stride_view<UnSimpleConstView>>);
4747

4848
constexpr bool test() {
49-
const auto unsimple_const_view = UnSimpleConstView();
50-
const auto sv_unsimple_const = std::ranges::stride_view(unsimple_const_view, 1);
49+
const auto unsimple_const_view = UnSimpleConstView();
50+
const auto sv_unsimple_const = std::ranges::stride_view(unsimple_const_view, 1);
5151
static_assert(std::same_as<decltype(*sv_unsimple_const.begin()), double&>);
5252

53-
auto simple_const_view = SimpleCommonConstView();
54-
auto sv_simple_const = std::ranges::stride_view(simple_const_view, 1);
53+
auto simple_const_view = SimpleCommonConstView();
54+
auto sv_simple_const = std::ranges::stride_view(simple_const_view, 1);
5555
static_assert(std::same_as<decltype(*sv_simple_const.begin()), int&>);
5656

5757
return true;

0 commit comments

Comments
 (0)