view: add const array ref template deduction

This commit is contained in:
Danny Robson 2018-03-20 13:30:22 +11:00
parent 341907ac79
commit 84f8600f85

View File

@ -449,7 +449,10 @@ namespace util {
view (const std::vector<ValueT,AllocatorT>&) -> view<typename AllocatorT::const_pointer>;
template <typename ValueT, std::size_t N>
view (std::array<ValueT,N>) -> view<ValueT*>;
view (std::array<ValueT,N>&) -> view<ValueT*>;
template <typename ValueT, std::size_t N>
view (const std::array<ValueT,N>&) -> view<const ValueT*>;
template <typename ContainerT>
view (ContainerT&) -> view<