Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
review
  • Loading branch information
huixie90 committed Jul 19, 2025
commit a7a687f1f25f9cc43947a08eb660669acb7d4dd6
6 changes: 2 additions & 4 deletions libcxx/include/__ranges/zip_transform_view.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,8 @@ class zip_transform_view<_Fn, _Views...>::__iterator
: __parent_(std::addressof(__parent)), __inner_(std::move(__inner)) {}

_LIBCPP_HIDE_FROM_ABI constexpr auto __get_deref_and_invoke() const noexcept {
return [this](const auto&... __iters) noexcept(
noexcept(std::invoke(*__parent_->__fun_, *__iters...))) -> decltype(auto) {
return std::invoke(*__parent_->__fun_, *__iters...);
};
return [&__fun = *__parent_->__fun_](const auto&... __iters) noexcept(noexcept(std::invoke(
*__parent_->__fun_, *__iters...))) -> decltype(auto) { return std::invoke(__fun, *__iters...); };
}

public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ constexpr bool test() {

int main(int, char**) {
test();
//static_assert(test());
static_assert(test());

return 0;
}