gcc-9.1 build fixed

This commit is contained in:
Mateusz Pusz
2019-12-11 08:27:12 +01:00
parent 9e34050e23
commit 9bebf316a7

View File

@@ -57,12 +57,21 @@ struct base_dimension {
// BaseDimension // BaseDimension
namespace detail { namespace detail {
#if __GNUC__ == 9 && __GNUC_MINOR__ < 2
template<typename T>
inline constexpr bool is_base_dimension = true;
#else
template<typename T> template<typename T>
inline constexpr bool is_base_dimension = false; inline constexpr bool is_base_dimension = false;
template<basic_fixed_string Name, typename... Params> template<basic_fixed_string Name, typename... Params>
inline constexpr bool is_base_dimension<base_dimension<Name, Params...>> = true; inline constexpr bool is_base_dimension<base_dimension<Name, Params...>> = true;
#endif
} // namespace detail } // namespace detail
template<typename T> template<typename T>