From fa96ec630147ced2a6f55a8929f68cc772ae500f Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Mon, 29 Apr 2013 16:12:34 +0100 Subject: [PATCH] Add operator == for the range template --- thin-provisioning/range.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/thin-provisioning/range.h b/thin-provisioning/range.h index ccb91c4..8345c18 100644 --- a/thin-provisioning/range.h +++ b/thin-provisioning/range.h @@ -16,6 +16,10 @@ namespace thin_provisioning { end_(end) { } + bool operator ==(range const &r) const { + return (begin_ == r.begin_ && end_ == r.end_); + } + maybe begin_; maybe end_; };