Skip to content

Commit 913f219

Browse files
committed
Span: Fix type used in is_convertible traits.
1 parent 895ef34 commit 913f219

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform/Span.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ struct Span {
305305
_data(other.data())
306306
{
307307
MBED_STATIC_ASSERT(
308-
(span_detail::is_convertible<OtherElementType (*)[], ElementType (*)[]>::value),
308+
(span_detail::is_convertible<OtherElementType (*)[1], ElementType (*)[1]>::value),
309309
"OtherElementType(*)[] should be convertible to ElementType (*)[]"
310310
);
311311
}
@@ -594,7 +594,7 @@ struct Span<ElementType, SPAN_DYNAMIC_EXTENT> {
594594
_data(other.data()), _size(other.size())
595595
{
596596
MBED_STATIC_ASSERT(
597-
(span_detail::is_convertible<OtherElementType (*)[], ElementType (*)[]>::value),
597+
(span_detail::is_convertible<OtherElementType (*)[1], ElementType (*)[1]>::value),
598598
"OtherElementType(*)[] should be convertible to ElementType (*)[]"
599599
);
600600
}

0 commit comments

Comments
 (0)