diff --git a/include/boost/regex/pending/object_cache.hpp b/include/boost/regex/pending/object_cache.hpp index 561b08e8..8bac298a 100644 --- a/include/boost/regex/pending/object_cache.hpp +++ b/include/boost/regex/pending/object_cache.hpp @@ -83,7 +83,7 @@ template boost::shared_ptr object_cache::do_get(const Key& k, size_type max_cache_size) { typedef typename object_cache::data object_data; - typedef typename list_type::size_type list_size_type; + typedef typename map_type::size_type map_size_type; static object_data s_data; // @@ -122,7 +122,7 @@ boost::shared_ptr object_cache::do_get(const Key& k, size_t s_data.cont.push_back(value_type(result, 0)); s_data.index.insert(std::make_pair(k, --(s_data.cont.end()))); s_data.cont.back().second = &(s_data.index.find(k)->first); - list_size_type s = s_data.cont.size(); + map_size_type s = s_data.index.size(); BOOST_ASSERT(s_data.index[k]->first.get() == result.get()); BOOST_ASSERT(&(s_data.index.find(k)->first) == s_data.cont.back().second); BOOST_ASSERT(s_data.index.find(k)->first == k); diff --git a/include/boost/regex/v4/basic_regex_parser.hpp b/include/boost/regex/v4/basic_regex_parser.hpp index b5cd2794..116a5194 100644 --- a/include/boost/regex/v4/basic_regex_parser.hpp +++ b/include/boost/regex/v4/basic_regex_parser.hpp @@ -889,7 +889,7 @@ bool basic_regex_parser::parse_repeat_range(bool isbasic) // if(min > max) { - fail(regex_constants::error_range, this->m_position - this->m_base); + fail(regex_constants::error_badbrace, this->m_position - this->m_base); return false; } return parse_repeat(min, max); diff --git a/include/boost/regex/v4/perl_matcher_recursive.hpp b/include/boost/regex/v4/perl_matcher_recursive.hpp index 74f63bed..a93758c0 100644 --- a/include/boost/regex/v4/perl_matcher_recursive.hpp +++ b/include/boost/regex/v4/perl_matcher_recursive.hpp @@ -494,6 +494,7 @@ bool perl_matcher::match_char_repeat() #ifdef BOOST_MSVC #pragma warning(push) #pragma warning(disable:4127) +#pragma warning(disable:4267) #endif #ifdef __BORLANDC__ #pragma option push -w-8008 -w-8066 -w-8004