diff --git a/src/HPWH.hh b/src/HPWH.hh index 47407ece..29d1e97b 100644 --- a/src/HPWH.hh +++ b/src/HPWH.hh @@ -13,6 +13,11 @@ #include //for exit #include #include +#include +#include +#include +#include +#include namespace Btwxt { @@ -267,8 +272,8 @@ class HPWH template std::size_t operator()(const std::pair& p) const { - auto h1 = std::hash {}(p.first); - auto h2 = std::hash {}(p.second); + auto h1 = static_cast(p.first); + auto h2 = static_cast(p.second); return h1 ^ h2; } }; @@ -284,6 +289,7 @@ class HPWH MIN, // minutes S // seconds }; + static ConversionMap convertTime; inline static double convert(const double time, const HPWH::TIME_UNITS fromUnits, const HPWH::TIME_UNITS toUnits) @@ -311,7 +317,7 @@ class HPWH } /* energy units and conversion */ - enum class E_UNITS + enum class E_UNITS:std::size_t { KJ, // kilojoules KWH, // kilowatt hours @@ -325,7 +331,7 @@ class HPWH } /* power units and conversion */ - enum class P_UNITS + enum class P_UNITS:std::size_t { KW, // kilowatts BTUperH, // BTU per hour