The extent of the returned span was incorrect
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 43038 Build 43684: arc lint + arc unit
Event Timeline
Comment Actions
Thanks for the patch! Good find. I'll commit this with a slight change to the tests. I'll use this formulation of the static_asserts instead, which is clearer IMO:
if constexpr (Count != std::dynamic_extent) { static_assert(S1::extent == Count); } else if constexpr (Span::extent != std::dynamic_extent) { static_assert(S1::extent == Span::extent - Offset); } else { static_assert(S1::extent == std::dynamic_extent); }