]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/20_util/scoped_allocator/propagation.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 20_util / scoped_allocator / propagation.cc
index 653fb427cc32cb51b7f7cdc3481e8cdefbea135a..6698c4f0dd38c332fa6a0f67a1716d564490a5b5 100644 (file)
@@ -1,7 +1,6 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++0x" }
+// { dg-do compile { target c++11 } }
 
-// Copyright (C) 2011-2013 Free Software Foundation, Inc.
+// Copyright (C) 2011-2020 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -41,14 +40,18 @@ template<typename T>
 template<typename T, bool copy, bool move, bool swap>
   struct test_allocator : minimal_allocator<T>
   {
+    template<typename U>
+      struct rebind
+      { using other = test_allocator<U, copy, move, swap>; };
+
     struct propagate_on_container_copy_assignment
-    { static const bool value = copy; };
+    : std::integral_constant<bool, copy> { };
 
     struct propagate_on_container_move_assignment
-    { static const bool value = move; };
+    : std::integral_constant<bool, move> { };
 
     struct propagate_on_container_swap
-    { static const bool value = swap; };
+    : std::integral_constant<bool, swap> { };
   };
 
 template<typename A>