Skip to content

Commit c8e503b

Browse files
committed
LWG
1 parent 23888d3 commit c8e503b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

libcxx/docs/Status/Cxx23Issues.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
"`LWG3765 <https://wg21.link/LWG3765>`__","``const_sentinel`` should be constrained","2022-11 (Kona)","","",""
223223
"`LWG3766 <https://wg21.link/LWG3766>`__","``view_interface::cbegin`` is underconstrained","2022-11 (Kona)","","",""
224224
"`LWG3770 <https://wg21.link/LWG3770>`__","``const_sentinel_t`` is missing","2022-11 (Kona)","","",""
225-
"`LWG3773 <https://wg21.link/LWG3773>`__","``views::zip_transform`` still requires ``F`` to be ``copy_constructible`` when empty pack","2022-11 (Kona)","","",""
225+
"`LWG3773 <https://wg21.link/LWG3773>`__","``views::zip_transform`` still requires ``F`` to be ``copy_constructible`` when empty pack","2022-11 (Kona)","|Complete|","21",""
226226
"`LWG3774 <https://wg21.link/LWG3774>`__","``<flat_set>`` should include ``<compare>``","2022-11 (Kona)","","",""
227227
"`LWG3775 <https://wg21.link/LWG3775>`__","Broken dependencies in the ``Cpp17Allocator`` requirements","2022-11 (Kona)","","",""
228228
"`LWG3778 <https://wg21.link/LWG3778>`__","``vector<bool>`` missing exception specifications","2022-11 (Kona)","|Complete|","3.7",""

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ struct NotMoveConstructible {
2424
int operator()() const { return 5; }
2525
};
2626

27+
struct NotCopyConstructible {
28+
NotCopyConstructible() = default;
29+
NotCopyConstructible(NotCopyConstructible&&) = default;
30+
NotCopyConstructible(const NotCopyConstructible&) = delete;
31+
int operator()() const { return 5; }
32+
};
33+
2734
struct NotInvocable {};
2835

2936
template <class... Args>
@@ -35,6 +42,9 @@ struct ReturnNotObject {
3542
void operator()() const {}
3643
};
3744

45+
// LWG3773 views::zip_transform still requires F to be copy_constructible when empty pack
46+
static_assert(std::is_invocable_v<decltype((std::views::zip_transform)), NotCopyConstructible>);
47+
3848
static_assert(!std::is_invocable_v<decltype((std::views::zip_transform))>);
3949
static_assert(!std::is_invocable_v<decltype((std::views::zip_transform)), NotMoveConstructible>);
4050
static_assert(!std::is_invocable_v<decltype((std::views::zip_transform)), NotInvocable>);

0 commit comments

Comments
 (0)