From: David Wells Date: Thu, 7 Jul 2016 11:11:40 +0000 (-0400) Subject: Enable some tests to run in C++03 mode. X-Git-Tag: v8.5.0-rc1~921^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fed7d207369b151963bdbb5def057a2468de0f1;p=dealii.git Enable some tests to run in C++03 mode. --- 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()))); } } }