Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QSpan: make adl_begin() etc SFINAE-friendly
The definition of iterator_t, and, therefore, of is_compatible_range depends on this, otherwise say, 0, is being treated as a valid range and hits a hard error in adl_begin() when trying to call begin(int&). TIL: decltype(auto) does _not_ SFINAE. Fix by calculating the return type manually, re-enabing SFINAE. Manual conflict resolutions: - qspan.h -> qspan_p.h Change-Id: Icacd70554f4050ecaeb396c9ae60bc4f21a220c9 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> (cherry picked from commit 94e122c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 1b559b2) Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
- Loading branch information