[base] Simplify static_asserts in span's subview API
This change Simplifies the static_asserts in base::span's fixed subview API first<Count>(), last<Count>() and subspan<Count, Offset>(). These simplifications rely on the fact that dynamic_extent is equal to std::numeric_limits<size_t>::max(), and thus will never be smaller than any other possible value. References: - https://cplusplus.github.io/LWG/issue3103 - https://github.com/cplusplus/draft/commit/6a0aa7 Bug: 828324 Change-Id: I626b7e65b1ae8010485c4387a936704810e43fe5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2089843 Auto-Submit: Jan Wilken Dörrie <jdoerrie@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Commit-Queue: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#747494}
Showing
Please register or sign in to comment