From 37899b3f8bd9aaedc4c3499ea4d4774a1d4f3381 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 17 Feb 2020 14:30:30 +1100 Subject: [PATCH] view: prefer allocator_traits over allocator for pointer allocator::pointer has been removed in c++20, so we need to be using allocator_traits::pointer here instead. --- view.hpp | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/view.hpp b/view.hpp index 69d2e253..4c8d96a5 100644 --- a/view.hpp +++ b/view.hpp @@ -528,18 +528,32 @@ namespace cruft { template - view (std::basic_string &) -> view; + view ( + std::basic_string & + ) -> view< + typename std::allocator_traits::pointer + >; template - view (const std::basic_string &) -> view; + view ( + const std::basic_string & + ) -> view< + typename std::allocator_traits::const_pointer + >; template - view (std::vector&) -> view; + view ( + std::vector& + ) -> view::pointer>; template - view (const std::vector&) -> view; + view ( + const std::vector& + ) -> view< + typename std::allocator_traits::const_pointer + >; template view (std::array&) -> view;