-
Notifications
You must be signed in to change notification settings - Fork 1.6k
chunk_by_view's helper lambda returns bool
#2890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -640,30 +640,14 @@ template <class _Fn, class... _Its> | |
| using indirect_result_t = invoke_result_t<_Fn, iter_reference_t<_Its>...>; | ||
| // clang-format on | ||
|
|
||
| #pragma warning(push) | ||
| #pragma warning(disable : 5046) // '%s': Symbol involving type with internal linkage not defined | ||
| #ifdef __clang__ | ||
| #pragma clang diagnostic push | ||
| #pragma clang diagnostic ignored "-Wundefined-internal" // function '%s' has internal linkage but is not defined | ||
| #endif // __clang__ | ||
|
|
||
| template <indirectly_readable _It, indirectly_regular_unary_invocable<_It> _Proj> | ||
| struct projected { | ||
| using value_type = remove_cvref_t<indirect_result_t<_Proj&, _It>>; | ||
| #if defined(__clang__) || defined(__EDG__) | ||
| indirect_result_t<_Proj&, _It> operator*() const; | ||
| #else // ^^^ no workaround / workaround vvv | ||
| indirect_result_t<_Proj&, _It> operator*() const { | ||
| _CSTD abort(); // TRANSITION, VSO-1308657 | ||
| _CSTD abort(); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For reviewers:
|
||
| } | ||
| #endif // ^^^ workaround ^^^ | ||
| }; | ||
|
|
||
| #ifdef __clang__ | ||
| #pragma clang diagnostic pop | ||
| #endif // __clang__ | ||
| #pragma warning(pop) | ||
|
|
||
| template <weakly_incrementable _It, class _Proj> | ||
| struct incrementable_traits<projected<_It, _Proj>> { | ||
| using difference_type = iter_difference_t<_It>; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.