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 e94e44f commit 741a49dCopy full SHA for 741a49d
util/generic/array_ref.h
@@ -76,8 +76,8 @@ class TArrayRef {
76
{
77
}
78
79
- template <class Container>
80
- constexpr inline TArrayRef(Container&& container, decltype(std::declval<T*&>() = container.data(), nullptr) = nullptr) noexcept
+ template <class Container, typename = std::enable_if_t<std::is_convertible_v<decltype(std::declval<Container>().data()), T*>>>
+ constexpr inline TArrayRef(Container&& container) noexcept
81
: TArrayRef(container.data(), container.size())
82
83
0 commit comments