Commit e5a44bd6 by Benjamin Kosnik Committed by Benjamin Kosnik

regex_compiler.h: Nest namespace versioning.

2011-03-14  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/regex_compiler.h: Nest namespace versioning.
	* include/bits/regex_grep_matcher.tcc: Same.
	* include/bits/regex_grep_matcher.h: Same.
	* include/bits/regex_cursor.h: Same.
	* include/bits/regex_nfa.h: Same.
	* include/bits/regex_nfa.tcc: Same.

	* include/bits/regex_grep_matcher.h: Version forward declarations.
	* include/bits/c++config: Add namespace association for __regex.
	* include/bits/regex.h: Make sub_match consistent.

From-SVN: r170978
parent 77b0791e
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Same. * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Same.
* config/abi/pre/gnu.ver: Add new exports. * config/abi/pre/gnu.ver: Add new exports.
2011-03-14 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/regex_compiler.h: Nest namespace versioning. * include/bits/regex_compiler.h: Nest namespace versioning.
* include/bits/regex_grep_matcher.tcc: Same. * include/bits/regex_grep_matcher.tcc: Same.
* include/bits/regex_grep_matcher.h: Same. * include/bits/regex_grep_matcher.h: Same.
...@@ -31,6 +33,10 @@ ...@@ -31,6 +33,10 @@
* include/bits/regex_nfa.h: Same. * include/bits/regex_nfa.h: Same.
* include/bits/regex_nfa.tcc: Same. * include/bits/regex_nfa.tcc: Same.
* include/bits/regex_grep_matcher.h: Version forward declarations.
* include/bits/c++config: Add namespace association for __regex.
* include/bits/regex.h: Make sub_match consistent.
2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* doc/xml/manual/abi.xml: Replace docs.sun.com URLs by their OTN * doc/xml/manual/abi.xml: Replace docs.sun.com URLs by their OTN
......
...@@ -170,9 +170,6 @@ namespace std ...@@ -170,9 +170,6 @@ namespace std
{ {
inline namespace _6 { } inline namespace _6 { }
namespace __detail { inline namespace _6 { } }
namespace rel_ops { inline namespace _6 { } } namespace rel_ops { inline namespace _6 { } }
namespace tr1 namespace tr1
...@@ -189,6 +186,9 @@ namespace std ...@@ -189,6 +186,9 @@ namespace std
namespace placeholders { inline namespace _6 { } } namespace placeholders { inline namespace _6 { } }
namespace regex_constants { inline namespace _6 { } } namespace regex_constants { inline namespace _6 { } }
namespace this_thread { inline namespace _6 { } } namespace this_thread { inline namespace _6 { } }
namespace __detail { inline namespace _6 { } }
namespace __regex { inline namespace _6 { } }
} }
namespace __gnu_cxx namespace __gnu_cxx
......
...@@ -1459,7 +1459,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -1459,7 +1459,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
template<typename _Bi_iter, template<typename _Bi_iter,
typename _Allocator = allocator<sub_match<_Bi_iter> > > typename _Allocator = allocator<sub_match<_Bi_iter> > >
class match_results class match_results
: private std::vector<std::sub_match<_Bi_iter>, _Allocator> : private std::vector<sub_match<_Bi_iter>, _Allocator>
{ {
private: private:
/* /*
...@@ -1473,8 +1473,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -1473,8 +1473,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* [n+1] prefix * [n+1] prefix
* [n+2] suffix * [n+2] suffix
*/ */
typedef std::vector<std::sub_match<_Bi_iter>, _Allocator> typedef std::vector<sub_match<_Bi_iter>, _Allocator> _Base_type;
_Base_type;
public: public:
/** /**
......
...@@ -30,12 +30,15 @@ ...@@ -30,12 +30,15 @@
namespace std _GLIBCXX_VISIBILITY(default) namespace std _GLIBCXX_VISIBILITY(default)
{ {
_GLIBCXX_BEGIN_NAMESPACE_VERSION
template<typename _BiIter> template<typename _BiIter>
class sub_match; class sub_match;
template<typename _Bi_iter, typename _Allocator> template<typename _Bi_iter, typename _Allocator>
class match_results; class match_results;
_GLIBCXX_END_NAMESPACE_VERSION
namespace __regex namespace __regex
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment