From 22171f90708a1f1a7c2ebaa669501c9830838d3a Mon Sep 17 00:00:00 2001 From: John Maddock Date: Wed, 7 Sep 2005 17:00:57 +0000 Subject: [PATCH] Try and fix errors unique to gcc-3.3 on darwin. [SVN r30856] --- include/boost/regex/v4/instances.hpp | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/include/boost/regex/v4/instances.hpp b/include/boost/regex/v4/instances.hpp index 9fcfa41a..ed01af97 100644 --- a/include/boost/regex/v4/instances.hpp +++ b/include/boost/regex/v4/instances.hpp @@ -117,14 +117,17 @@ template BOOST_REGEX_DECL void BOOST_REGEX_CALL match_results::maybe_assign( const match_results& m); +namespace re_detail{ -template BOOST_REGEX_DECL void ::boost::re_detail::perl_matcher::allocator_type, boost::regex_traits >::construct_init( +template BOOST_REGEX_DECL void perl_matcher::allocator_type, boost::regex_traits >::construct_init( BOOST_REGEX_CHAR_T const * first, BOOST_REGEX_CHAR_T const * end, match_results& what, const basic_regex& e, match_flag_type f); -template BOOST_REGEX_DECL bool ::boost::re_detail::perl_matcher::allocator_type, boost::regex_traits >::match(); -template BOOST_REGEX_DECL bool ::boost::re_detail::perl_matcher::allocator_type, boost::regex_traits >::find(); +template BOOST_REGEX_DECL bool perl_matcher::allocator_type, boost::regex_traits >::match(); +template BOOST_REGEX_DECL bool perl_matcher::allocator_type, boost::regex_traits >::find(); + +} // namespace re_detail #if defined(__GLIBCPP__) || defined(__GLIBCXX__) // std:basic_string<>::const_iterator instances as well: @@ -132,13 +135,18 @@ template BOOST_REGEX_DECL void BOOST_REGEX_CALL match_results::const_iterator>::maybe_assign( const match_results::const_iterator>& m); -template BOOST_REGEX_DECL void ::boost::re_detail::perl_matcher::const_iterator, match_results< std::basic_string::const_iterator >::allocator_type, boost::regex_traits >::construct_init( +namespace re_detail{ + +template BOOST_REGEX_DECL void perl_matcher::const_iterator, match_results< std::basic_string::const_iterator >::allocator_type, boost::regex_traits >::construct_init( std::basic_string::const_iterator first, std::basic_string::const_iterator end, match_results::const_iterator>& what, const basic_regex& e, match_flag_type f); -template BOOST_REGEX_DECL bool ::boost::re_detail::perl_matcher::const_iterator, match_results< std::basic_string::const_iterator >::allocator_type, boost::regex_traits >::match(); -template BOOST_REGEX_DECL bool ::boost::re_detail::perl_matcher::const_iterator, match_results< std::basic_string::const_iterator >::allocator_type, boost::regex_traits >::find(); +template BOOST_REGEX_DECL bool perl_matcher::const_iterator, match_results< std::basic_string::const_iterator >::allocator_type, boost::regex_traits >::match(); +template BOOST_REGEX_DECL bool perl_matcher::const_iterator, match_results< std::basic_string::const_iterator >::allocator_type, boost::regex_traits >::find(); + +} // namespace + #endif # ifdef template