From 72d06f078637523113c05eec8a21bf705e975b1c Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Mon, 14 Dec 2020 19:56:13 +0000 Subject: [PATCH] Use allocator_traits when appropriate. --- include/boost/regex/v5/match_results.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/regex/v5/match_results.hpp b/include/boost/regex/v5/match_results.hpp index c2e2b542..70549e83 100644 --- a/include/boost/regex/v5/match_results.hpp +++ b/include/boost/regex/v5/match_results.hpp @@ -61,12 +61,12 @@ public: typedef const_iterator iterator; typedef typename std::iterator_traits< BidiIterator>::difference_type difference_type; - typedef typename Allocator::size_type size_type; + typedef typename std::allocator_traits::size_type size_type; typedef Allocator allocator_type; typedef typename std::iterator_traits< BidiIterator>::value_type char_type; typedef std::basic_string string_type; - typedef BOOST_REGEX_DETAIL_NS::named_subexpressions named_sub_type; + typedef BOOST_REGEX_DETAIL_NS::named_subexpressions named_sub_type; // construct/copy/destroy: explicit match_results(const Allocator& a = Allocator())