OSDN Git Service

2011-05-30 Paolo Carlini <paolo.carlini@oracle.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / testsuite / 20_util / tuple / moveable2.cc
index f080074..5ed8de5 100644 (file)
@@ -1,6 +1,6 @@
 // { dg-options "-std=gnu++0x" }
 
-// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2008, 2009, 2010, 2011 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
@@ -17,7 +17,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-
 #include <tuple>
 #include <utility>
 
@@ -30,9 +29,8 @@ struct MoveOnly
   MoveOnly& operator=(MoveOnly&&)
   { return *this; }
 
-private:
-  MoveOnly(MoveOnly const&); // = delete
-  MoveOnly& operator=(MoveOnly const&); // = delete
+  MoveOnly(MoveOnly const&) = delete;
+  MoveOnly& operator=(MoveOnly const&) = delete;
 };
 
 MoveOnly