diff --git a/src/common/util/typename.h b/src/common/util/typename.h index 35e037fc9..b84deba88 100644 --- a/src/common/util/typename.h +++ b/src/common/util/typename.h @@ -50,8 +50,7 @@ inline const std::string typename_unpack_args() { return type_name() + "," + typename_unpack_args(); } -#if defined(__VINEYARD_GCC_VERSION) && \ - (__VINEYARD_GCC_VERSION <= 50100 || __VINEYARD_GCC_VERSION >= 70200) +#if defined(__VINEYARD_GCC_VERSION) && __VINEYARD_GCC_VERSION <= 90100 #if defined(__clang__) #define __TYPENAME_FROM_FUNCTION_PREFIX \ @@ -80,18 +79,24 @@ inline const std::string __typename_from_function() { template inline const std::string typename_impl(T const&) { -#if defined(__VINEYARD_GCC_VERSION) && \ - (__VINEYARD_GCC_VERSION <= 50100 || __VINEYARD_GCC_VERSION >= 70200) - return ctti::nameof().cppstring(); -#else +#if defined(__VINEYARD_GCC_VERSION) && __VINEYARD_GCC_VERSION <= 90100 return __typename_from_function(); +#else + return ctti::nameof().cppstring(); #endif } template