10 #include <type_traits> 24 template<
typename T, T x>
27 using U =
typename std::underlying_type<T>::type;
28 return x == std::numeric_limits<U>::min();
31 static_assert(is_minimum<Consensus::BuriedDeployment, Consensus::DEPLOYMENT_HEIGHTINCB>(),
"heightincb is not minimum value for BuriedDeployment");
32 static_assert(is_minimum<Consensus::DeploymentPos, Consensus::DEPLOYMENT_TESTDUMMY>(),
"testdummy is not minimum value for DeploymentPos");
static constexpr bool is_minimum()
constexpr bool ValidDeployment(BuriedDeployment dep)