|
1 | 1 | /* |
2 | | - * Copyright 2018-2019, Intel Corporation |
| 2 | + * Copyright 2018-2020, Intel Corporation |
3 | 3 | * |
4 | 4 | * Redistribution and use in source and binary forms, with or without |
5 | 5 | * modification, are permitted provided that the following conditions |
@@ -175,7 +175,7 @@ struct contiguous_iterator { |
175 | 175 | /** |
176 | 176 | * Element access operator. |
177 | 177 | */ |
178 | | - Reference operator[](std::size_t n) |
| 178 | + Reference operator[](std::ptrdiff_t n) |
179 | 179 | { |
180 | 180 | return ptr[n]; |
181 | 181 | } |
@@ -259,7 +259,7 @@ struct range_snapshotting_iterator |
259 | 259 | * |
260 | 260 | * Adds element to a transaction. |
261 | 261 | */ |
262 | | - reference operator[](std::size_t n) |
| 262 | + reference operator[](std::ptrdiff_t n) |
263 | 263 | { |
264 | 264 | detail::conditional_add_to_tx(&this->ptr[n], 1, |
265 | 265 | POBJ_XADD_ASSUME_INITIALIZED); |
@@ -409,7 +409,7 @@ struct basic_contiguous_iterator |
409 | 409 | * |
410 | 410 | * Adds range containing specified element to a transaction. |
411 | 411 | */ |
412 | | - reference operator[](std::size_t n) |
| 412 | + reference operator[](std::ptrdiff_t n) |
413 | 413 | { |
414 | 414 | detail::conditional_add_to_tx(&this->ptr[n], 1, |
415 | 415 | POBJ_XADD_ASSUME_INITIALIZED); |
|
0 commit comments