diff --git a/include/boost/regex/config/regex_library_include.hpp b/include/boost/regex/config/regex_library_include.hpp index 90f65c90..c76a7e3b 100644 --- a/include/boost/regex/config/regex_library_include.hpp +++ b/include/boost/regex/config/regex_library_include.hpp @@ -136,7 +136,7 @@ BOOST_LIB_DEBUG_OPT: nothing for release builds, #if defined(BOOST_REGEX_STATIC_LINK) && defined(BOOST_REGEX_DYN_LINK) # undef BOOST_REGEX_STATIC_LINK #endif -#if (defined(_DLL) || defined(_RTLDLL)) && !defined(BOOST_REGEX_STATIC_LINK) +#if (defined(_DLL) || defined(_RTLDLL)) && defined(BOOST_REGEX_DYN_LINK) # define BOOST_LIB_PREFIX #else # define BOOST_LIB_PREFIX "lib" @@ -149,7 +149,7 @@ BOOST_LIB_DEBUG_OPT: nothing for release builds, # define BOOST_LIB_DEBUG_OPT "dd" #elif defined(BOOST_MSVC) && defined(_DEBUG) # define BOOST_LIB_DEBUG_OPT "d" -#elif defined(__BORLANDC__) && (__BORLANDC__ == 0x560) && (defined(_STLP_DEBUG) || defined(__STL_DEBUG)) +#elif defined(__BORLANDC__) && (__BORLANDC__ >= 0x560) && (defined(_STLP_DEBUG) || defined(__STL_DEBUG)) # define BOOST_LIB_DEBUG_OPT "dd" #else # define BOOST_LIB_DEBUG_OPT diff --git a/include/boost/regex/v4/basic_regex.hpp b/include/boost/regex/v4/basic_regex.hpp index f84fbc41..8fd9e826 100644 --- a/include/boost/regex/v4/basic_regex.hpp +++ b/include/boost/regex/v4/basic_regex.hpp @@ -362,7 +362,7 @@ public: template basic_regex(I first, I last, flag_type f = regex_constants::normal, const Allocator& al = Allocator()) - : reg_expression(first, last, f, a){} + : reg_expression(first, last, f, al){} template basic_regex& BOOST_REGEX_CALL operator=(const std::basic_string& p) diff --git a/include/boost/regex/v4/match_results.hpp b/include/boost/regex/v4/match_results.hpp index b767e415..df21590f 100644 --- a/include/boost/regex/v4/match_results.hpp +++ b/include/boost/regex/v4/match_results.hpp @@ -140,7 +140,7 @@ public: } const_iterator end() const { - m_subs.end(); + return m_subs.end(); } // format: template diff --git a/include/boost/regex/v4/perl_matcher_non_recursive.hpp b/include/boost/regex/v4/perl_matcher_non_recursive.hpp index e3f122be..0f5599e5 100644 --- a/include/boost/regex/v4/perl_matcher_non_recursive.hpp +++ b/include/boost/regex/v4/perl_matcher_non_recursive.hpp @@ -761,14 +761,14 @@ bool perl_matcher::unwind_paren(boo } // unwind stack: m_backup_state = pmp+1; - destroy(pmp); + boost::re_detail::destroy(pmp); return true; // keep looking } template bool perl_matcher::unwind_recursion_stopper(bool) { - destroy(m_backup_state++); + boost::re_detail::destroy(m_backup_state++); pstate = 0; // nothing left to search return false; // end of stack nothing more to search } @@ -781,7 +781,7 @@ bool perl_matcher::unwind_assertion position = pmp->position; bool result = (r == pmp->positive); m_recursive_result = pmp->positive ? r : !r; - destroy(pmp++); + boost::re_detail::destroy(pmp++); m_backup_state = pmp; return !result; // return false if the assertion was matched to stop search. } @@ -795,7 +795,7 @@ bool perl_matcher::unwind_alt(bool pstate = pmp->pstate; position = pmp->position; } - destroy(pmp++); + boost::re_detail::destroy(pmp++); m_backup_state = pmp; return r; } @@ -804,7 +804,7 @@ template bool perl_matcher::unwind_repeater_counter(bool) { saved_repeater* pmp = static_cast*>(m_backup_state); - destroy(pmp++); + boost::re_detail::destroy(pmp++); m_backup_state = pmp; return true; // keep looking } @@ -816,7 +816,7 @@ bool perl_matcher::unwind_extra_blo void* condemmed = m_stack_base; m_stack_base = pmp->base; m_backup_state = pmp->end; - destroy(pmp); + boost::re_detail::destroy(pmp); block_cache.put(condemmed); return true; // keep looking } @@ -825,7 +825,7 @@ template inline void perl_matcher::destroy_single_repeat() { saved_single_repeat* p = static_cast*>(m_backup_state); - destroy(p++); + boost::re_detail::destroy(p++); m_backup_state = p; } @@ -1195,7 +1195,7 @@ bool perl_matcher::unwind_non_greed pstate = pmp->pstate; ++(*next_count); } - destroy(pmp++); + boost::re_detail::destroy(pmp++); m_backup_state = pmp; return r; } diff --git a/include/boost/regex/v4/regex_stack.hpp b/include/boost/regex/v4/regex_stack.hpp index 2dfda0f9..eb28cace 100644 --- a/include/boost/regex/v4/regex_stack.hpp +++ b/include/boost/regex/v4/regex_stack.hpp @@ -47,8 +47,9 @@ namespace boost{ template class jstack { -private: +public: typedef typename boost::detail::rebind_allocator::type allocator_type; +private: typedef typename boost::detail::rebind_allocator::type T_alloc_type; typedef typename T_alloc_type::size_type size_type; typedef T value_type; diff --git a/include/boost/regex/v4/regex_token_iterator.hpp b/include/boost/regex/v4/regex_token_iterator.hpp index 0e795834..3783499e 100644 --- a/include/boost/regex/v4/regex_token_iterator.hpp +++ b/include/boost/regex/v4/regex_token_iterator.hpp @@ -42,7 +42,7 @@ class regex_token_iterator_implementation const regex_type* pre; // the expression match_flag_type flags; // match flags std::basic_string result; // the current string result - std::vector::size_type N; // the current sub-expression being enumerated + int N; // the current sub-expression being enumerated std::vector subs; // the sub-expressions to enumerate public: