Skip to content

Commit 741a49d

Browse files
Use a more conventional return value check compatible with MSVC tools 14.4*.
commit_hash:044e079ab391ee08bb3a3a2b78e8db01fef63d53
1 parent e94e44f commit 741a49d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

util/generic/array_ref.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ class TArrayRef {
7676
{
7777
}
7878

79-
template <class Container>
80-
constexpr inline TArrayRef(Container&& container, decltype(std::declval<T*&>() = container.data(), nullptr) = nullptr) noexcept
79+
template <class Container, typename = std::enable_if_t<std::is_convertible_v<decltype(std::declval<Container>().data()), T*>>>
80+
constexpr inline TArrayRef(Container&& container) noexcept
8181
: TArrayRef(container.data(), container.size())
8282
{
8383
}

0 commit comments

Comments
 (0)