meta: minor changes

This commit is contained in:
Michele Caini
2022-04-26 19:01:15 +02:00
parent 80c700b1f8
commit 0ebdfe59ee

View File

@@ -155,7 +155,7 @@ class meta_any {
switch(op) {
case operation::deref:
if constexpr(is_meta_pointer_like_v<Type>) {
if constexpr(std::is_function_v<std::remove_const_t<typename std::pointer_traits<Type>::element_type>>) {
if constexpr(std::is_function_v<typename std::pointer_traits<Type>::element_type>) {
*static_cast<meta_any *>(other) = any_cast<Type>(value);
} else if constexpr(!std::is_same_v<std::remove_const_t<typename std::pointer_traits<Type>::element_type>, void>) {
using in_place_type = decltype(adl_meta_pointer_like<Type>::dereference(any_cast<const Type &>(value)));