Skip to content

Commit 43170d2

Browse files
committed
Span: Make name of dynamic span tag consistent with C++ standard.
1 parent eba1dc6 commit 43170d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

platform/Span.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace mbed {
3030
* If the type use this value then the size of the array is stored in the object
3131
* at runtime.
3232
*/
33-
#define SPAN_DYNAMIC_SIZE -1
33+
#define SPAN_DYNAMIC_EXTENT -1
3434

3535
/**
3636
* View to an array.
@@ -55,7 +55,7 @@ namespace mbed {
5555
* SPAN_DYNAMIC_SIZE is special as it allows construction of Span objects of
5656
* any size (set at runtime).
5757
*/
58-
template<typename T, ptrdiff_t Size = SPAN_DYNAMIC_SIZE>
58+
template<typename T, ptrdiff_t Size = SPAN_DYNAMIC_EXTENT>
5959
struct Span {
6060

6161
MBED_STATIC_ASSERT(Size >= 0, "Invalid size for an ArrayView");
@@ -220,7 +220,7 @@ struct Span {
220220
* Span specialisation that handle dynamic array size.
221221
*/
222222
template<typename T>
223-
struct Span<T, SPAN_DYNAMIC_SIZE> {
223+
struct Span<T, SPAN_DYNAMIC_EXTENT> {
224224

225225
/**
226226
* Construct a view to an empty array.

0 commit comments

Comments
 (0)