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