Skip to content

Commit c826f6d

Browse files
committed
Fix types
1 parent f28e783 commit c826f6d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/xtd.core/include/xtd/span.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ namespace xtd {
153153
/// @name Public Methods
154154

155155
/// @{
156-
const_reference at(size_t index) const {
156+
const_reference at(size_type index) const {
157157
if (index >= size_) throw argument_out_of_range_exception {};
158158
return *(data_ + index);
159159
}
160-
reference at(size_t index) {
160+
reference at(size_type index) {
161161
if (index >= size_) throw argument_out_of_range_exception {};
162162
return *(data_ + index);
163163
}
@@ -176,8 +176,8 @@ namespace xtd {
176176
/// @name Public Operators
177177

178178
/// @{
179-
const_reference operator[](size_t index) const {return at(index);}
180-
reference operator[](size_t index) {return at(index);}
179+
const_reference operator[](size_type index) const {return at(index);}
180+
reference operator[](size_type index) {return at(index);}
181181
/// @}
182182

183183
private:

0 commit comments

Comments
 (0)