From a330f9a8f93e42d31d5463e22ea78636f100b69c Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 8 May 2020 21:17:35 +0200 Subject: [PATCH] Constraints for prefixed_alias_unit added --- src/include/units/unit.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/include/units/unit.h b/src/include/units/unit.h index 1ff6fe06..6bf3db22 100644 --- a/src/include/units/unit.h +++ b/src/include/units/unit.h @@ -179,7 +179,12 @@ struct alias_unit : U { using prefix_family = PT; }; +// TODO gcc bug: 95015 +// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95015 +// template +// requires (!AliasUnit) && std::same_as template + requires std::same_as struct prefixed_alias_unit : U { static constexpr bool is_named = true; static constexpr auto symbol = P::symbol + AU::symbol;