fix fit-algorithm implementation: min compare

This commit is contained in:
bolero-MURAKAMI 2013-07-24 19:22:26 +09:00
parent 57e35349e5
commit 0aeaf19c47
4 changed files with 4 additions and 4 deletions

View file

@ -23,7 +23,7 @@ namespace sprout {
return sprout::sub_copy( return sprout::sub_copy(
sprout::get_internal(sprout::fixed::fill_n(cont, n, value)), sprout::get_internal(sprout::fixed::fill_n(cont, n, value)),
offset, offset,
offset + NS_SSCRISK_CEL_OR_SPROUT::min(n, sprout::size(cont)) offset + NS_SSCRISK_CEL_OR_SPROUT::min<typename sprout::container_traits<Container>::difference_type>(n, sprout::size(cont))
); );
} }
} // namespace detail } // namespace detail

View file

@ -23,7 +23,7 @@ namespace sprout {
return sprout::sub_copy( return sprout::sub_copy(
sprout::get_internal(sprout::fixed::generate_n(cont, n, gen)), sprout::get_internal(sprout::fixed::generate_n(cont, n, gen)),
offset, offset,
offset + NS_SSCRISK_CEL_OR_SPROUT::min(n, sprout::size(cont)) offset + NS_SSCRISK_CEL_OR_SPROUT::min<typename sprout::container_traits<Container>::difference_type>(n, sprout::size(cont))
); );
} }
} // namespace detail } // namespace detail

View file

@ -24,7 +24,7 @@ namespace sprout {
return sprout::sub_copy( return sprout::sub_copy(
sprout::get_internal(sprout::fixed::recurrence_n(cont, n, gen, inits...)), sprout::get_internal(sprout::fixed::recurrence_n(cont, n, gen, inits...)),
offset, offset,
offset + NS_SSCRISK_CEL_OR_SPROUT::min(n, sprout::size(cont)) offset + NS_SSCRISK_CEL_OR_SPROUT::min<typename sprout::container_traits<Container>::difference_type>(n, sprout::size(cont))
); );
} }
} // namespace detail } // namespace detail

View file

@ -23,7 +23,7 @@ namespace sprout {
return sprout::sub_copy( return sprout::sub_copy(
sprout::get_internal(sprout::fixed::unfold_n(cont, n, gen, init)), sprout::get_internal(sprout::fixed::unfold_n(cont, n, gen, init)),
offset, offset,
offset + NS_SSCRISK_CEL_OR_SPROUT::min(n, sprout::size(cont)) offset + NS_SSCRISK_CEL_OR_SPROUT::min<typename sprout::container_traits<Container>::difference_type>(n, sprout::size(cont))
); );
} }
} // namespace detail } // namespace detail