fix advance (N4442)

This commit is contained in:
bolero-MURAKAMI 2015-07-15 19:42:31 +09:00
parent 79ed131e71
commit 648ce19038

View file

@ -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());
} }