From 3fed7d207369b151963bdbb5def057a2468de0f1 Mon Sep 17 00:00:00 2001 From: David Wells Date: Thu, 7 Jul 2016 07:11:40 -0400 Subject: [PATCH] Enable some tests to run in C++03 mode. --- tests/arpack/step-36_parpack.cc | 2 +- tests/fe/fe_series_05.cc | 2 +- tests/slepc/step-36_parallel.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/arpack/step-36_parpack.cc b/tests/arpack/step-36_parpack.cc index b9cef33e15..a3339509c0 100644 --- a/tests/arpack/step-36_parpack.cc +++ b/tests/arpack/step-36_parpack.cc @@ -322,7 +322,7 @@ void test () stiffness_matrix.vmult(Ax,eigenfunctions[i]); Ax.add(-1.0*std::real(lambda[i]),Bx); Assert (Ax.l2_norm() < precision, - ExcMessage(std::to_string(Ax.l2_norm()))); + ExcMessage(Utilities::to_string(Ax.l2_norm()))); } } } diff --git a/tests/fe/fe_series_05.cc b/tests/fe/fe_series_05.cc index 9aac646993..e5fc151771 100644 --- a/tests/fe/fe_series_05.cc +++ b/tests/fe/fe_series_05.cc @@ -70,7 +70,7 @@ double Lh(const Point &x_q, const double x = 2.0*(x_q[d]-0.5); Assert ( (x_q[d] <= 1.0) && (x_q[d] >= 0.), ExcMessage("x_q is not in [0,1]" + - std::to_string(x_q[d]))); + Utilities::to_string(x_q[d]))); const int ind = indices[d]; res *= sqrt(2.0) * gsl_sf_legendre_Pl (ind, x); } diff --git a/tests/slepc/step-36_parallel.cc b/tests/slepc/step-36_parallel.cc index beb9b3b066..3c332bae66 100644 --- a/tests/slepc/step-36_parallel.cc +++ b/tests/slepc/step-36_parallel.cc @@ -314,7 +314,7 @@ void test (std::string solver_name, stiffness_matrix.vmult(Ax,eigenfunctions[i]); Ax.add(-1.0*eigenvalues[i],Bx); Assert (Ax.l2_norm() < precision, - ExcMessage(std::to_string(Ax.l2_norm()))); + ExcMessage(Utilities::to_string(Ax.l2_norm()))); } } } -- 2.39.5