From b5dc48af0eb411abd7f5a36c3cc839b823fef03c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Wed, 15 Jun 2016 09:20:19 +0200 Subject: [PATCH] Make new ops const. --- opm/core/props/BlackoilPhases.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/core/props/BlackoilPhases.hpp b/opm/core/props/BlackoilPhases.hpp index 679fd95d..981588ff 100644 --- a/opm/core/props/BlackoilPhases.hpp +++ b/opm/core/props/BlackoilPhases.hpp @@ -60,8 +60,8 @@ namespace Opm void setFreeOil () { insert(BlackoilPhases::Liquid); } void setFreeGas () { insert(BlackoilPhases::Vapour); } - bool operator==(const PhasePresence& other) { return present_ == other.present_; } - bool operator!=(const PhasePresence& other) { return !this->operator==(other); } + bool operator==(const PhasePresence& other) const { return present_ == other.present_; } + bool operator!=(const PhasePresence& other) const { return !this->operator==(other); } private: unsigned char present_;