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:
parent
dcf83cc1d7
commit
5f1c3d4dee
1 changed files with 2 additions and 3 deletions
|
@ -38,7 +38,6 @@
|
||||||
# include <sprout/iterator/index_iterator.hpp>
|
# include <sprout/iterator/index_iterator.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
namespace sprout {
|
namespace sprout {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
template<typename Iterator, typename T, std::size_t N>
|
template<typename Iterator, typename T, std::size_t N>
|
||||||
|
@ -154,7 +153,7 @@ namespace sprout {
|
||||||
: value_type()
|
: value_type()
|
||||||
)...
|
)...
|
||||||
}
|
}
|
||||||
, len(!(N < n) ? n
|
, len(!sprout::math::less(N, n) ? n
|
||||||
: throw std::out_of_range("basic_string<>: index out of range")
|
: throw std::out_of_range("basic_string<>: index out of range")
|
||||||
)
|
)
|
||||||
{}
|
{}
|
||||||
|
@ -169,7 +168,7 @@ namespace sprout {
|
||||||
: value_type()
|
: value_type()
|
||||||
)...
|
)...
|
||||||
}
|
}
|
||||||
, len(!(N < n) ? n
|
, len(!sprout::math::less(N, n) ? n
|
||||||
: throw std::out_of_range("basic_string<>: index out of range")
|
: throw std::out_of_range("basic_string<>: index out of range")
|
||||||
)
|
)
|
||||||
{}
|
{}
|
||||||
|
|
Loading…
Reference in a new issue