Skip to content

Commit

Permalink
Deprecate instead of remove index_type
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Emmers committed Nov 30, 2021
1 parent ed3ad1c commit 0fb88f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platform/cxxsupport/mstd_span
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ public:
using element_type = ElementType;
using value_type = typename mstd::remove_cv_t<element_type>;
using size_type = size_t;
// Typedef because IAR does not allow [[deprecated]] with using
[[deprecated("Use size_type instead.")]] typedef size_t index_type;
using difference_type = ptrdiff_t;
using pointer = element_type *;
using const_pointer = const element_type *;
Expand Down

0 comments on commit 0fb88f8

Please sign in to comment.