From: David Wells Date: Sat, 28 May 2016 18:10:30 +0000 (-0400) Subject: Fix a test so it can run in C++03 mode. X-Git-Tag: v8.5.0-rc1~1002^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb316f997601115b2cd638e056b55bab251d79e2;p=dealii.git Fix a test so it can run in C++03 mode. std::to_string is a C++11 addition. --- diff --git a/tests/mpi/periodic_neighbor_01.cc b/tests/mpi/periodic_neighbor_01.cc index 8241e0f507..b1ae7bcdbe 100755 --- a/tests/mpi/periodic_neighbor_01.cc +++ b/tests/mpi/periodic_neighbor_01.cc @@ -84,6 +84,7 @@ */ #include "../tests.h" +#include #include #include #include @@ -198,14 +199,14 @@ void periodicity_tests::write_grid() Grid1_Out.set_flags(svg_flags); if (dim == 2) { - std::ofstream Grid1_OutFile("Grid1" + std::to_string(refn_cycle) + - std::to_string(comm_rank) + ".svg"); + std::ofstream Grid1_OutFile("Grid1" + dealii::Utilities::to_string(refn_cycle) + + dealii::Utilities::to_string(comm_rank) + ".svg"); Grid1_Out.write_svg(the_grid, Grid1_OutFile); } else { - std::ofstream Grid1_OutFile("Grid1" + std::to_string(refn_cycle) + - std::to_string(comm_rank) + ".msh"); + std::ofstream Grid1_OutFile("Grid1" + dealii::Utilities::to_string(refn_cycle) + + dealii::Utilities::to_string(comm_rank) + ".msh"); Grid1_Out.write_msh(the_grid, Grid1_OutFile); } }