[Libreoffice-commits] core.git: Branch 'aoo/trunk' - stlport/systemstl

Herbert Dürr hdu at apache.org
Thu May 15 07:08:06 PDT 2014


 stlport/systemstl/hash_map |   18 ++++++++----------
 stlport/systemstl/hash_set |   18 ++++++++----------
 stlport/systemstl/slist    |    6 +++---
 3 files changed, 19 insertions(+), 23 deletions(-)

New commits:
commit 5d3e7996df43efe1f5fa8e584d60ad0a30775d5d
Author: Herbert Dürr <hdu at apache.org>
Date:   Thu May 15 12:16:43 2014 +0000

    #i124908# remove custom allocator support in stlport-replacement headers
    
    with the sal-internal custom allocator removed AOO no longer needs the
    stlport-replacement headers to support the complexity of containers with
    non-default allocators. Xcode>=5.1's libc++ runs into build problems with
    such custom allocator support in the stlport-replacement headers because
    of constness mismatches.

diff --git a/stlport/systemstl/hash_map b/stlport/systemstl/hash_map
index 5c2777f..812a51a 100644
--- a/stlport/systemstl/hash_map
+++ b/stlport/systemstl/hash_map
@@ -55,40 +55,38 @@ template<
 	typename __K,
 	typename __T,
 	typename __H = hash<__K>,
-	typename __E = equal_to<__K>,
-	typename __A = allocator<pair<__K,__T> > >
+	typename __E = equal_to<__K> >
 class hash_map
-:	public unordered_map<__K,__T,__H,__E,__A>
+:	public unordered_map<__K,__T,__H,__E>
 {
 public:
-	typedef unordered_map<__K,__T,__H,__E,__A> _super;
+	typedef unordered_map<__K,__T,__H,__E> _super;
 
 	hash_map( void) {}
 	hash_map( size_t n) : _super( n) {}
 
 private:
 	// setting the hasher dynamically is not supported in the emulation!
-	hash_map( size_t, const __H&, const __E& rE=__E(), const __A& rA=__A()); // not implemented
+	hash_map( size_t, const __H&, const __E& rE=__E()); // not implemented
 };
 
 template<
 	typename __K,
 	typename __T,
 	typename __H = hash<__K>,
-	typename __E = equal_to<__K>,
-	typename __A = allocator<pair<__K,__T> > >
+	typename __E = equal_to<__K> >
 class hash_multimap
-:	public unordered_multimap<__K,__T,__H,__E,__A>
+:	public unordered_multimap<__K,__T,__H,__E>
 {
 public:
-	typedef unordered_multimap<__K,__T,__H,__E,__A> _super;
+	typedef unordered_multimap<__K,__T,__H,__E> _super;
 
 	hash_multimap( void) {}
 	hash_multimap( size_t n) : _super( n) {}
 
 private:
 	// setting the hasher dynamically is not supported in the emulation!
-	hash_multimap( size_t, const __H&, const __E& rE=__E(), const __A& rA=__A()); // not implemented
+	hash_multimap( size_t, const __H&, const __E& rE=__E()); // not implemented
 };
 
 } // namespace std
diff --git a/stlport/systemstl/hash_set b/stlport/systemstl/hash_set
index a6bc33c..5435ee9 100644
--- a/stlport/systemstl/hash_set
+++ b/stlport/systemstl/hash_set
@@ -51,37 +51,35 @@ namespace std
 template<
 	typename __K,
 	typename __H = hash<__K>,
-	typename __E = equal_to<__K>,
-	typename __A = allocator<__K> >
+	typename __E = equal_to<__K> >
 class hash_set
-:	public unordered_set<__K,__H,__E,__A>
+:	public unordered_set<__K,__H,__E>
 {
-	typedef unordered_set<__K,__H,__E,__A> _super;
+	typedef unordered_set<__K,__H,__E> _super;
 public:
 	hash_set( void) {}
 	hash_set( size_t n) : _super(n) {}
 
 private:
 	// setting the hasher dynamically is not supported in the emulation!
-	hash_set( size_t, const __H&, const __E& rE=__E(), const __A& rA=__A()); // not implemented
+	hash_set( size_t, const __H&, const __E& rE=__E()); // not implemented
 };
 
 template<
 	typename __K,
 	typename __H = hash<__K>,
-	typename __E = equal_to<__K>,
-	typename __A = allocator<__K> >
+	typename __E = equal_to<__K> >
 class hash_multiset
-:	public unordered_multiset<__K,__H,__E,__A>
+:	public unordered_multiset<__K,__H,__E>
 {
-	typedef unordered_multiset<__K,__H,__E,__A> _super;
+	typedef unordered_multiset<__K,__H,__E> _super;
 public:
 	hash_multiset( void) {}
 	hash_multiset( size_t n) : _super( n) {}
 
 private:
 	// setting the hasher dynamically is not supported in the emulation!
-	hash_multiset( size_t, const __H&, const __E& rE=__E(), const __A& rA=__A()); // not implemented
+	hash_multiset( size_t, const __H&, const __E& rE=__E()); // not implemented
 };
 
 } // namespace std
diff --git a/stlport/systemstl/slist b/stlport/systemstl/slist
index a51fc24..4ff1514 100644
--- a/stlport/systemstl/slist
+++ b/stlport/systemstl/slist
@@ -57,11 +57,11 @@ namespace std
 using STLP4_SLIST_EMUBASE;
 
 // lame emulation of the pre-C++11 slist using the std::forward_list (or std::list)
-template< typename T, class A=allocator<T> >
-class slist : public STLP4_SLIST_EMUBASE<T,A>
+template< typename T >
+class slist : public STLP4_SLIST_EMUBASE<T>
 {
 public:
-	typedef typename STLP4_SLIST_EMUBASE<T,A> _super;
+	typedef typename STLP4_SLIST_EMUBASE<T> _super;
 	typedef typename _super::iterator slist_mit;
 	typedef typename _super::const_iterator slist_cit;
 


More information about the Libreoffice-commits mailing list