fix for clang 3.2

This commit is contained in:
bolero-MURAKAMI 2012-05-14 15:42:54 +09:00
parent 3a999dd70c
commit b67695ec6b
28 changed files with 133 additions and 75 deletions

View file

@ -100,7 +100,7 @@ namespace sprout {
return !(lhs == rhs);
}
friend SPROUT_CONSTEXPR bool operator<(bytes_iterator const& lhs, bytes_iterator const& rhs) {
return lhs.it_ < rhs.it_ || lhs.it_ == rhs.it_ && lhs.i_ < rhs.i_;
return lhs.it_ < rhs.it_ || (lhs.it_ == rhs.it_ && lhs.i_ < rhs.i_);
}
friend SPROUT_CONSTEXPR bool operator>(bytes_iterator const& lhs, bytes_iterator const& rhs) {
return rhs < lhs;