Merge remote-tracking branch 'upstream/dev/annagrin/strided_array_view_bugfixes' into dev/annagrin/strided_array_view_bugfixes

Conflicts:
	include/array_view.h
This commit is contained in:
Neil MacIntosh 2015-09-14 17:22:56 -07:00
commit 006721ce8a

View File

@ -1772,6 +1772,7 @@ public:
return { reinterpret_cast<byte*>(this->data()), this->bytes() };
}
// from bytes array
template<typename U, bool IsByte = std::is_same<value_type, const byte>::value, typename Dummy = std::enable_if_t<IsByte && sizeof...(RestDimensions) == 0>>
_CONSTEXPR auto as_array_view() const _NOEXCEPT -> array_view<const U, (Base::bounds_type::dynamic_rank == 0 ? Base::bounds_type::static_size / sizeof(U) : static_cast<size_type>(dynamic_range))>