Make new ops const.

This commit is contained in:
Atgeirr Flø Rasmussen 2016-06-15 09:20:19 +02:00
parent fcb99e425d
commit b5dc48af0e

View File

@ -60,8 +60,8 @@ namespace Opm
void setFreeOil () { insert(BlackoilPhases::Liquid); } void setFreeOil () { insert(BlackoilPhases::Liquid); }
void setFreeGas () { insert(BlackoilPhases::Vapour); } void setFreeGas () { insert(BlackoilPhases::Vapour); }
bool operator==(const PhasePresence& other) { return present_ == other.present_; } bool operator==(const PhasePresence& other) const { return present_ == other.present_; }
bool operator!=(const PhasePresence& other) { return !this->operator==(other); } bool operator!=(const PhasePresence& other) const { return !this->operator==(other); }
private: private:
unsigned char present_; unsigned char present_;