File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ class dense_map {
277
277
[[nodiscard]] auto constrained_find (const Other &key, std::size_t bucket) {
278
278
for (auto it = begin (bucket), last = end (bucket); it != last; ++it) {
279
279
if (packed.second ()(it->first , key)) {
280
- return begin () + static_cast <typename iterator:: difference_type>(it.index ());
280
+ return begin () + static_cast <difference_type>(it.index ());
281
281
}
282
282
}
283
283
@@ -288,7 +288,7 @@ class dense_map {
288
288
[[nodiscard]] auto constrained_find (const Other &key, std::size_t bucket) const {
289
289
for (auto it = cbegin (bucket), last = cend (bucket); it != last; ++it) {
290
290
if (packed.second ()(it->first , key)) {
291
- return cbegin () + static_cast <typename const_iterator:: difference_type>(it.index ());
291
+ return cbegin () + static_cast <difference_type>(it.index ());
292
292
}
293
293
}
294
294
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ class dense_set {
236
236
[[nodiscard]] auto constrained_find (const Other &value, std::size_t bucket) {
237
237
for (auto it = begin (bucket), last = end (bucket); it != last; ++it) {
238
238
if (packed.second ()(*it, value)) {
239
- return begin () + static_cast <typename iterator:: difference_type>(it.index ());
239
+ return begin () + static_cast <difference_type>(it.index ());
240
240
}
241
241
}
242
242
@@ -247,7 +247,7 @@ class dense_set {
247
247
[[nodiscard]] auto constrained_find (const Other &value, std::size_t bucket) const {
248
248
for (auto it = cbegin (bucket), last = cend (bucket); it != last; ++it) {
249
249
if (packed.second ()(*it, value)) {
250
- return cbegin () + static_cast <typename const_iterator:: difference_type>(it.index ());
250
+ return cbegin () + static_cast <difference_type>(it.index ());
251
251
}
252
252
}
253
253
Original file line number Diff line number Diff line change @@ -419,7 +419,7 @@ class basic_table {
419
419
*/
420
420
void erase (const size_type pos) {
421
421
ENTT_ASSERT (pos < size (), " Index out of bounds" );
422
- erase (begin () + static_cast <typename iterator:: difference_type>(pos));
422
+ erase (begin () + static_cast <difference_type>(pos));
423
423
}
424
424
425
425
/* *
You can’t perform that action at this time.
0 commit comments