From 363f8ae0a5b0923e059352d88a83bc365c20a812 Mon Sep 17 00:00:00 2001 From: Pete Peterson <petersonpf@ornl.gov> Date: Mon, 17 Sep 2018 15:23:23 -0400 Subject: [PATCH] Add operator!= --- .../HistogramData/inc/MantidHistogramData/FixedLengthVector.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Framework/HistogramData/inc/MantidHistogramData/FixedLengthVector.h b/Framework/HistogramData/inc/MantidHistogramData/FixedLengthVector.h index 53cb5f7dc9b..76c0a60cfe4 100644 --- a/Framework/HistogramData/inc/MantidHistogramData/FixedLengthVector.h +++ b/Framework/HistogramData/inc/MantidHistogramData/FixedLengthVector.h @@ -109,6 +109,10 @@ public: return this->rawData() == rhs.rawData(); } + bool operator!=(const FixedLengthVector<T> &rhs) const { + return !(*this == rhs); + } + bool empty() const { return m_data.empty(); } size_t size() const { return m_data.size(); } -- GitLab