From fb316f997601115b2cd638e056b55bab251d79e2 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 28 May 2016 14:10:30 -0400 Subject: [PATCH] Fix a test so it can run in C++03 mode. std::to_string is a C++11 addition. --- tests/mpi/periodic_neighbor_01.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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); } } -- 2.39.5