diff --git a/sprout/string/string.hpp b/sprout/string/string.hpp index e537738d..75f07ab0 100644 --- a/sprout/string/string.hpp +++ b/sprout/string/string.hpp @@ -38,7 +38,6 @@ # include #endif - namespace sprout { namespace detail { template @@ -154,7 +153,7 @@ namespace sprout { : value_type() )... } - , len(!(N < n) ? n + , len(!sprout::math::less(N, n) ? n : throw std::out_of_range("basic_string<>: index out of range") ) {} @@ -169,7 +168,7 @@ namespace sprout { : value_type() )... } - , len(!(N < n) ? n + , len(!sprout::math::less(N, n) ? n : throw std::out_of_range("basic_string<>: index out of range") ) {}