We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 825ab6b commit 9df8829Copy full SHA for 9df8829
cpp/src/arrow/type_traits.h
@@ -57,7 +57,8 @@ struct is_optional_like<
57
template <typename T, typename Enable = void>
58
struct has_type_singleton : std::false_type {};
59
template <typename T>
60
-struct has_type_singleton<T, void_t<decltype(T::type_singleton)>> : std::true_type {};
+struct has_type_singleton<T, std::void_t<decltype(std::declval<T>().type_singleton())>>
61
+ : std::true_type {};
62
63
} // namespace internal
64
0 commit comments