From 3a76c1de91897f8bf0b5b29226a25876fd30236a Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 14 Jan 2020 12:55:07 +0100 Subject: [PATCH] gcc10 compilation error fixed in conversion example --- example/conversion_factor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/conversion_factor.cpp b/example/conversion_factor.cpp index df17c3e6..0c0eaf70 100644 --- a/example/conversion_factor.cpp +++ b/example/conversion_factor.cpp @@ -27,7 +27,7 @@ namespace { template requires units::equivalent_dim -constexpr inline std::common_type_t conversion_factor(Target, Source) +inline constexpr std::common_type_t conversion_factor(Target, Source) { // get quantities looking like inputs but with Q::rep that doesn't have narrowing conversion typedef std::common_type_t rep; @@ -37,7 +37,7 @@ constexpr inline std::common_type_t } // get at the units text of the quantity, without its numeric value -auto inline constexpr units_str(const units::Quantity& q) +inline auto constexpr units_str(const units::Quantity AUTO& q) { typedef std::remove_cvref_t qtype; return units::detail::unit_text();