From 16ef81a20a3b827e88f57c292f4e147f806aa2d6 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 6 Aug 2016 12:08:32 -0400 Subject: [PATCH] Enable compilation of a test in C++03 mode. --- tests/manifold/spherical_manifold_02.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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