Range: Implemented ::operator!=

This commit is contained in:
Paul Beckingham 2017-03-19 15:36:34 -04:00
parent 96202f3a24
commit d535ffb4e5
2 changed files with 8 additions and 0 deletions

View file

@ -48,6 +48,13 @@ bool Range::operator== (const Range& other) const
end == other.end; end == other.end;
} }
////////////////////////////////////////////////////////////////////////////////
bool Range::operator!= (const Range& other) const
{
return start != other.start ||
end != other.end;
}
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void Range::open () void Range::open ()
{ {

View file

@ -36,6 +36,7 @@ public:
Range () = default; Range () = default;
Range (const Datetime&, const Datetime&); Range (const Datetime&, const Datetime&);
bool operator== (const Range&) const; bool operator== (const Range&) const;
bool operator!= (const Range&) const;
void open (); void open ();
void open (const Datetime&); void open (const Datetime&);