Commit 912d4f58 authored by Philip Trettner's avatar Philip Trettner

trying to appease msvc

parent aebe21aa
......@@ -94,19 +94,19 @@ private:
size_t _size = 0;
};
namespace detail
{
template <class Range>
constexpr bool can_make_array_view = convertible_to_array_view<Range, void const>;
}
template <class Range, class = std::enable_if_t<detail::can_make_array_view<Range>>>
auto make_array_view(Range&& r)
{
using T = std::remove_reference_t<decltype(r.data()[0])>;
return array_view<T>(std::forward<Range>(r));
}
namespace detail
{
template <class Range>
constexpr bool can_make_array_view = convertible_to_array_view<Range, void const>;
}
template <class T>
array_view<std::byte const> as_byte_view(T const& v)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment