|
|
@@ -168,9 +168,9 @@ using meta_function_helper_t = meta_function_helper<Type, Candidate>::type;
|
|
|
template<meta_policy Policy = as_value_t, typename Type>
|
|
|
[[nodiscard]] meta_any meta_dispatch(const meta_ctx &ctx, [[maybe_unused]] Type &&value) {
|
|
|
if constexpr(stl::is_same_v<Policy, as_cref_t>) {
|
|
|
- static_assert(std::is_lvalue_reference_v<Type>, "Invalid type");
|
|
|
+ static_assert(stl::is_lvalue_reference_v<Type>, "Invalid type");
|
|
|
return meta_any{ctx, std::in_place_type<const std::remove_reference_t<Type> &>, stl::as_const(value)};
|
|
|
- } else if constexpr(stl::is_same_v<Policy, as_ref_t> || (stl::is_same_v<Policy, as_is_t> && std::is_lvalue_reference_v<Type>)) {
|
|
|
+ } else if constexpr(stl::is_same_v<Policy, as_ref_t> || (stl::is_same_v<Policy, as_is_t> && stl::is_lvalue_reference_v<Type>)) {
|
|
|
return meta_any{ctx, std::in_place_type<Type>, value};
|
|
|
} else if constexpr(stl::is_same_v<Policy, as_void_t>) {
|
|
|
return meta_any{ctx, std::in_place_type<void>};
|