File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -697,15 +697,15 @@ struct Span<ElementType, SPAN_DYNAMIC_EXTENT> {
697
697
* @return A subspan of this starting at Offset and Count long.
698
698
*/
699
699
template <std::ptrdiff_t Offset, std::ptrdiff_t Count>
700
- Span<element_type, Count == SPAN_DYNAMIC_EXTENT ? SPAN_DYNAMIC_EXTENT : Count >
700
+ Span<element_type, Count>
701
701
subspan () const
702
702
{
703
703
MBED_ASSERT (0 <= Offset && Offset <= _size);
704
704
MBED_ASSERT (
705
705
(Count == SPAN_DYNAMIC_EXTENT) ||
706
706
(0 <= Count && (Count + Offset) <= _size)
707
707
);
708
- return Span<element_type, Count == SPAN_DYNAMIC_EXTENT ? SPAN_DYNAMIC_EXTENT : Count >(
708
+ return Span<element_type, Count>(
709
709
_data + Offset,
710
710
Count == SPAN_DYNAMIC_EXTENT ? _size - Offset : Count
711
711
);
You can’t perform that action at this time.
0 commit comments