fix RangeIterator to use empty()

master
Daniel Kolesa 2015-04-17 00:15:20 +01:00
parent 36d53f2019
commit bc35dad776
1 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@
namespace octa {
struct InputRange {};
struct OutputRange {};
struct ForwardRange {};
struct BidirectionalRange {};
struct RandomAccessRange {};
@ -84,8 +84,8 @@ namespace octa {
}
template<typename U>
friend bool operator!=(const RangeIterator &a, const RangeIterator<U> &b) {
return a.range() != b.range();
friend bool operator!=(const RangeIterator &a, const RangeIterator<U> &) {
return !a.range().empty();
}
};