]> https://gitweb.dealii.org/ - dealii.git/commitdiff
std::auto_ptr cannot be copied which causes an error on some platforms. Use std_cxx1x...
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 28 Jul 2009 11:11:16 +0000 (11:11 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 28 Jul 2009 11:11:16 +0000 (11:11 +0000)
git-svn-id: https://svn.dealii.org/trunk@19124 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/constraint_matrix.h
deal.II/lac/source/constraint_matrix.cc

index f99bd6717334958e77843032596e3a294b295ece..c6b8a39c7c9381cd167a596d7ebd014b4ab4d89e 100644 (file)
@@ -1521,7 +1521,7 @@ class ConstraintMatrix : public Subscriptor
                                       * This vector is used to import data
                                       * within the distribute function.
                                       */
-    mutable std::auto_ptr<TrilinosWrappers::MPI::Vector> vec_distribute;
+    mutable std_cxx1x::shared_ptr<TrilinosWrappers::MPI::Vector> vec_distribute;
 #endif
 };
 
index 5bd0c374fe0c3a77e76efb0a4b75af10382f6c54..0624e8cfdf8c2eab879e8cacc85e3210e4c6c6fe 100644 (file)
@@ -1917,7 +1917,7 @@ ConstraintMatrix::distribute (TrilinosWrappers::MPI::Vector &vec) const
       my_indices.resize(index2);
 
       Epetra_Map map_exchange = Epetra_Map(-1,index2,(int*)&my_indices[0],0,vec.trilinos_vector().Comm());
-      vec_distribute = std::auto_ptr<TrilinosWrappers::MPI::Vector> 
+      vec_distribute = std_cxx1x::shared_ptr<TrilinosWrappers::MPI::Vector> 
        (new TrilinosWrappers::MPI::Vector(map_exchange));
     }
                                   // here we import the data

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.