diff --git a/include/tsl/robin_hash.h b/include/tsl/robin_hash.h index 51662be..a5c264c 100644 --- a/include/tsl/robin_hash.h +++ b/include/tsl/robin_hash.h @@ -67,8 +67,7 @@ struct is_power_of_two_policy> : std::true_type {}; template -static T numeric_cast(U value, - const char* error_message = "numeric_cast() failed.") { +T numeric_cast(U value, const char* error_message = "numeric_cast() failed.") { T ret = static_cast(value); if (static_cast(ret) != value) { TSL_RH_THROW_OR_TERMINATE(std::runtime_error, error_message); @@ -87,7 +86,7 @@ static T numeric_cast(U value, } template -static T deserialize_value(Deserializer& deserializer) { +T deserialize_value(Deserializer& deserializer) { // MSVC < 2017 is not conformant, circumvent the problem by removing the // template keyword #if defined(_MSC_VER) && _MSC_VER < 1910