From: Martin Kronbichler Date: Wed, 10 Nov 2010 14:43:23 +0000 (+0000) Subject: Nicer way to initialize pointer. X-Git-Tag: v8.0.0~4985 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71331802bda598506d9fd2d5bcf85c6deff2029d;p=dealii.git Nicer way to initialize pointer. git-svn-id: https://svn.dealii.org/trunk@22672 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/lac/lapack_full_matrix.cc b/deal.II/source/lac/lapack_full_matrix.cc index 9dd21c3fe9..5b145fa858 100644 --- a/deal.II/source/lac/lapack_full_matrix.cc +++ b/deal.II/source/lac/lapack_full_matrix.cc @@ -242,8 +242,8 @@ LAPACKFullMatrix::compute_svd() std::fill(wr.begin(), wr.end(), 0.); ipiv.resize(8*mm); - svd_u = std_cxx1x::shared_ptr >(new LAPACKFullMatrix(mm,mm)); - svd_vt = std_cxx1x::shared_ptr >(new LAPACKFullMatrix(nn,nn)); + svd_u.reset (new LAPACKFullMatrix(mm,mm)); + svd_vt.reset (new LAPACKFullMatrix(nn,nn)); number* mu = const_cast (svd_u->data()); number* mvt = const_cast (svd_vt->data()); int info;