From: David Wells Date: Sat, 6 Aug 2016 16:08:32 +0000 (-0400) Subject: Enable compilation of a test in C++03 mode. X-Git-Tag: v8.5.0-rc1~798^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16ef81a20a3b827e88f57c292f4e147f806aa2d6;p=dealii.git Enable compilation of a test in C++03 mode. --- diff --git a/tests/manifold/spherical_manifold_02.cc b/tests/manifold/spherical_manifold_02.cc index d29c7913ea..e45e72fb4d 100644 --- a/tests/manifold/spherical_manifold_02.cc +++ b/tests/manifold/spherical_manifold_02.cc @@ -18,6 +18,7 @@ #include "../tests.h" #include +#include #include #include @@ -108,18 +109,16 @@ void test (MappingEnum::type mapping_name, unsigned int refinements=1) // << " degrees of freedom." // << std::endl; - std::shared_ptr > mapping; + std_cxx11::shared_ptr > mapping; switch (mapping_name) { case MappingEnum::MappingManifold: // deallog << " MappingManifold" << std::endl; - mapping = std::unique_ptr >( - new MappingManifold<2,3 >()); + mapping.reset(new MappingManifold<2,3 >()); break; case MappingEnum::MappingQ: // deallog << " MappingQ" << std::endl; - mapping = std::unique_ptr >( - new MappingQ<2,3>(fe.degree)); + mapping.reset(new MappingQ<2,3>(fe.degree)); break; } @@ -139,7 +138,7 @@ void test (MappingEnum::type mapping_name, unsigned int refinements=1) { double patch_surface = 0; fe_values.reinit (cell); - const auto &qp = fe_values.get_quadrature_points(); + const std::vector > &qp = fe_values.get_quadrature_points(); for (unsigned int q_point=0; q_point