Skip to content

Commit 0fb88f8

Browse files
author
Marc Emmers
committed
Deprecate instead of remove index_type
1 parent ed3ad1c commit 0fb88f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

platform/cxxsupport/mstd_span

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ public:
140140
using element_type = ElementType;
141141
using value_type = typename mstd::remove_cv_t<element_type>;
142142
using size_type = size_t;
143+
// Typedef because IAR does not allow [[deprecated]] with using
144+
[[deprecated("Use size_type instead.")]] typedef size_t index_type;
143145
using difference_type = ptrdiff_t;
144146
using pointer = element_type *;
145147
using const_pointer = const element_type *;

0 commit comments

Comments
 (0)