Widen rates bitmask to 32 bits.

This commit is contained in:
Jørgen Kvalsvik
2016-09-25 18:29:35 +02:00
parent 0cb12fff56
commit 38f9103e43

View File

@@ -24,6 +24,7 @@
#include <map>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <vector>
namespace Opm {
@@ -41,9 +42,7 @@ namespace Opm {
*/
public:
using enum_size = uint16_t;
enum class opt : enum_size {
enum class opt : uint32_t {
wat = (1 << 0),
oil = (1 << 1),
gas = (1 << 2),
@@ -51,6 +50,8 @@ namespace Opm {
solvent = (1 << 4),
};
using enum_size = std::underlying_type< opt >::type;
/// Query if a value is set.
inline bool has( opt ) const;