Skip to content

Commit 9df8829

Browse files
author
Rafał Hibner
committed
Fix for MSVC
1 parent 825ab6b commit 9df8829

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cpp/src/arrow/type_traits.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ struct is_optional_like<
5757
template <typename T, typename Enable = void>
5858
struct has_type_singleton : std::false_type {};
5959
template <typename T>
60-
struct has_type_singleton<T, void_t<decltype(T::type_singleton)>> : std::true_type {};
60+
struct has_type_singleton<T, std::void_t<decltype(std::declval<T>().type_singleton())>>
61+
: std::true_type {};
6162

6263
} // namespace internal
6364

0 commit comments

Comments
 (0)