mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 20:54:28 +02:00
gcc-9.1 build fixed
This commit is contained in:
@@ -57,12 +57,21 @@ struct base_dimension {
|
||||
// BaseDimension
|
||||
namespace detail {
|
||||
|
||||
#if __GNUC__ == 9 && __GNUC_MINOR__ < 2
|
||||
|
||||
template<typename T>
|
||||
inline constexpr bool is_base_dimension = true;
|
||||
|
||||
#else
|
||||
|
||||
template<typename T>
|
||||
inline constexpr bool is_base_dimension = false;
|
||||
|
||||
template<basic_fixed_string Name, typename... Params>
|
||||
inline constexpr bool is_base_dimension<base_dimension<Name, Params...>> = true;
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace detail
|
||||
|
||||
template<typename T>
|
||||
|
Reference in New Issue
Block a user