mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix next, prev
This commit is contained in:
parent
e9910b090d
commit
cdb10c0fbe
6 changed files with 221 additions and 5 deletions
|
@ -25,7 +25,8 @@ namespace sprout {
|
|||
void*
|
||||
)
|
||||
{
|
||||
return std::next(sprout::forward<ForwardIterator>(it));
|
||||
using std::next;
|
||||
return next(sprout::forward<ForwardIterator>(it));
|
||||
}
|
||||
|
||||
template<typename RandomAccessIterator>
|
||||
|
@ -47,7 +48,8 @@ namespace sprout {
|
|||
void*
|
||||
)
|
||||
{
|
||||
return std::next(sprout::forward<ForwardIterator>(it), n);
|
||||
using std::next;
|
||||
return next(sprout::forward<ForwardIterator>(it), n);
|
||||
}
|
||||
} // namespace detail
|
||||
//
|
||||
|
|
|
@ -25,7 +25,8 @@ namespace sprout {
|
|||
void*
|
||||
)
|
||||
{
|
||||
return std::prev(sprout::forward<BidirectionalIterator>(it));
|
||||
using std::prev;
|
||||
return prev(sprout::forward<BidirectionalIterator>(it));
|
||||
}
|
||||
|
||||
template<typename RandomAccessIterator>
|
||||
|
@ -47,7 +48,8 @@ namespace sprout {
|
|||
void*
|
||||
)
|
||||
{
|
||||
return std::prev(sprout::forward<BidirectionalIterator>(it), n);
|
||||
using std::prev;
|
||||
return prev(sprout::forward<BidirectionalIterator>(it), n);
|
||||
}
|
||||
} // namespace detail
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue