mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-14 10:39:05 +00:00
fix advance (N4442)
This commit is contained in:
parent
79ed131e71
commit
648ce19038
1 changed files with 2 additions and 2 deletions
|
@ -45,9 +45,9 @@ namespace sprout {
|
||||||
//
|
//
|
||||||
// advance
|
// advance
|
||||||
//
|
//
|
||||||
template<typename Iterator, typename Distance>
|
template<typename Iterator, typename Distance = typename std::iterator_traits<Iterator>::difference_type>
|
||||||
inline SPROUT_CXX14_CONSTEXPR void
|
inline SPROUT_CXX14_CONSTEXPR void
|
||||||
advance(Iterator& it, Distance n) {
|
advance(Iterator& it, Distance n = 1) {
|
||||||
typedef typename std::iterator_traits<Iterator>::iterator_category* category;
|
typedef typename std::iterator_traits<Iterator>::iterator_category* category;
|
||||||
sprout::detail::advance_impl(it, n, category());
|
sprout::detail::advance_impl(it, n, category());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue