OSDN Git Service

2011-10-07 Jonathan Wakely <jwakely.gcc@gmail.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Oct 2011 16:20:31 +0000 (16:20 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Oct 2011 16:20:31 +0000 (16:20 +0000)
* testsuite/util/testsuite_allocator.h (uneq_allocator): Add
propagate_on_container_swap typedef for C++0x testing.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179665 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/util/testsuite_allocator.h

index 1e35102..02bb86f 100644 (file)
@@ -1,3 +1,8 @@
+2011-10-07  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * testsuite/util/testsuite_allocator.h (uneq_allocator): Add
+       propagate_on_container_swap typedef for C++0x testing.
+
 2011-10-06  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * testsuite/27_io/ios_base/cons/assign_neg.cc: Tidy dg- directives,
index 454108c..38bfac8 100644 (file)
@@ -256,7 +256,11 @@ namespace __gnu_test
       typedef Tp&                                 reference;
       typedef const Tp&                           const_reference;
       typedef Tp                                  value_type;
-      
+
+#ifdef __GXX_EXPERIMENTAL_CXX0X__
+      typedef std::true_type                      propagate_on_container_swap;
+#endif
+
       template<typename Tp1>
         struct rebind
        { typedef uneq_allocator<Tp1> other; };