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())