Skip to content

Commit f16249c

Browse files
committed
fix has_storage_type
1 parent 429b514 commit f16249c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/xtensor/xutils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ namespace xt
587587

588588
template <class T>
589589
struct has_storage_type<T, void_t<typename xcontainer_inner_types<T>::storage_type>>
590-
: std::true_type
590+
: xtl::negation<std::is_same<typename std::remove_cv<typename xcontainer_inner_types<T>::storage_type>::type, invalid_type>>
591591
{};
592592

593593
/*************************************

0 commit comments

Comments
 (0)