From 576744f4083e77b26df7d0cd997cf2c96b709d00 Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Sat, 12 May 2012 01:49:15 +0900 Subject: [PATCH] fix sprout::shrink --- sprout/string/shrink.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sprout/string/shrink.hpp b/sprout/string/shrink.hpp index 345c2ffc..9a9770eb 100644 --- a/sprout/string/shrink.hpp +++ b/sprout/string/shrink.hpp @@ -4,15 +4,15 @@ #include #include #include -#include #include #include +#include HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT namespace sprout { // // shrink_string // - template > + template class shrink_string { public: typedef sprout::basic_string string_type; @@ -42,8 +42,8 @@ namespace sprout { SPROUT_CONSTEXPR operator sprout::basic_string() const { return implicit_conversion_impl( holder_.get().elems, - holder_.get().len, - sprout::index_range<0, (N2 < N ? N2 : N)>::make() + NS_SSCRISK_CEL_OR_SPROUT::min(N2, holder_.get().len), + sprout::index_range<0, NS_SSCRISK_CEL_OR_SPROUT::min(N2, N)>::make() ); } };