1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00

fix string: comparison of signed and unsigned integer

This commit is contained in:
bolero-MURAKAMI 2013-10-02 17:09:33 +09:00
parent dcf83cc1d7
commit 5f1c3d4dee

View file

@ -38,7 +38,6 @@
# include <sprout/iterator/index_iterator.hpp>
#endif
namespace sprout {
namespace detail {
template<typename Iterator, typename T, std::size_t N>
@ -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")
)
{}