diff --git a/include/boost/re_detail/regex_config.hpp b/include/boost/re_detail/regex_config.hpp index 616f6174..507e0cfc 100644 --- a/include/boost/re_detail/regex_config.hpp +++ b/include/boost/re_detail/regex_config.hpp @@ -290,8 +290,8 @@ Do not change this file unless you really really have to, add options to // // for now we'll always define these // unless we know that the platform can cope - // with woide character strings: - #if !defined(linux) + // with wide character strings: + #if !defined(linux) #define BOOST_RE_NO_WCTYPE_H #define BOOST_RE_NO_WCSTRING #endif diff --git a/include/boost/regex.hpp b/include/boost/regex.hpp index 092b4e8b..379024c0 100644 --- a/include/boost/regex.hpp +++ b/include/boost/regex.hpp @@ -837,7 +837,7 @@ class match_results_base public: typedef Allocator alloc_type; typedef BOOST_RE_MAYBE_TYPENAME REBIND_TYPE(iterator, Allocator) iterator_alloc; - typedef iterator_alloc::size_type size_type; + typedef typename iterator_alloc::size_type size_type; #ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION typedef typename std::iterator_traits::difference_type difference_type; typedef typename std::iterator_traits::value_type char_type;