fix(typetraits): fix CCommonType is incorrect for void
This commit is contained in:
parent
2a4d65c60e
commit
258aabbde0
@ -182,9 +182,8 @@ concept CCommonReference =
|
|||||||
|
|
||||||
template <typename... Ts>
|
template <typename... Ts>
|
||||||
concept CCommonType =
|
concept CCommonType =
|
||||||
requires { typename TCommonType<Ts...>; }
|
requires { typename TCommonType<Ts...>; (static_cast<TCommonType<Ts...>>(DeclVal<Ts>()), ...); }
|
||||||
&& (true && ... && CConstructibleFrom<TCommonReference<Ts...>, Ts&&>)
|
&& CCommonReference<const TAddLValueReference<Ts>...> && CCommonReference<TCommonReference<TCommonType<Ts...>>, TCommonReference<const TAddLValueReference<Ts>...>>;
|
||||||
&& CCommonReference<const Ts&...> && CCommonReference<TCommonType<Ts...>&, TCommonReference<const Ts&...>>;
|
|
||||||
|
|
||||||
NAMESPACE_MODULE_END(Utility)
|
NAMESPACE_MODULE_END(Utility)
|
||||||
NAMESPACE_MODULE_END(Redcraft)
|
NAMESPACE_MODULE_END(Redcraft)
|
||||||
|
Loading…
Reference in New Issue
Block a user