Skip to content

Commit 568a21b

Browse files
MattStephansonStephanTLavavejCaseyCarter
authored
<random>: Implement LWG-3519 (#2208)
Co-authored-by: Stephan T. Lavavej <[email protected]> Co-authored-by: Casey Carter <[email protected]>
1 parent 990576e commit 568a21b

File tree

4 files changed

+644
-859
lines changed

4 files changed

+644
-859
lines changed

Diff for: stl/inc/iterator

+2-8
Original file line numberDiff line numberDiff line change
@@ -1477,10 +1477,7 @@ public:
14771477
return _Tmp;
14781478
}
14791479

1480-
#ifndef __CUDACC__ // TRANSITION, VSO-568006
1481-
_NODISCARD
1482-
#endif // TRANSITION, VSO-568006
1483-
friend constexpr checked_array_iterator operator+(
1480+
_NODISCARD_FRIEND constexpr checked_array_iterator operator+(
14841481
const difference_type _Off, const checked_array_iterator<_Ptr>& _Next) noexcept {
14851482
return _Next + _Off;
14861483
}
@@ -1656,10 +1653,7 @@ public:
16561653
return _Tmp;
16571654
}
16581655

1659-
#ifndef __CUDACC__ // TRANSITION, VSO-568006
1660-
_NODISCARD
1661-
#endif // TRANSITION, VSO-568006
1662-
friend constexpr unchecked_array_iterator operator+(
1656+
_NODISCARD_FRIEND constexpr unchecked_array_iterator operator+(
16631657
const difference_type _Off, const unchecked_array_iterator& _Next) noexcept {
16641658
return _Next + _Off;
16651659
}

0 commit comments

Comments
 (0)