Re: [PATCH] libstdc++: Add a test that takes the split_view of a non-forward range

2020-03-11 Thread Jonathan Wakely via Gcc-patches
On 11/03/20 11:46 -0400, Patrick Palka wrote: This adds a tests that verifies taking the split_view of a non-forward range works correctly. Doing so revealed a typo in one of _OuterIter's constructors. Oops! It also revealed that the default constructor of __gnu_test::test_range::iterator mi

[PATCH] libstdc++: Add a test that takes the split_view of a non-forward range

2020-03-11 Thread Patrick Palka via Gcc-patches
This adds a tests that verifies taking the split_view of a non-forward range works correctly. Doing so revealed a typo in one of _OuterIter's constructors. It also revealed that the default constructor of __gnu_test::test_range::iterator misbehaves, because by delegating to Iter(nullptr, nullptr)