From 0dbb54551e80326e768e7b113039bc94e301ecb6 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 24 Feb 2016 17:03:59 +0100 Subject: [PATCH] std::to_string comes only with C++11 --- Cone_spanners_2/examples/Cone_spanners_2/theta_io.cpp | 3 ++- Cone_spanners_2/test/Cone_spanners_2/theta_exact.cpp | 3 ++- Cone_spanners_2/test/Cone_spanners_2/theta_inexact.cpp | 3 ++- Cone_spanners_2/test/Cone_spanners_2/yao_inexact.cpp | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Cone_spanners_2/examples/Cone_spanners_2/theta_io.cpp b/Cone_spanners_2/examples/Cone_spanners_2/theta_io.cpp index 58a7a660305..7fd94f8309e 100644 --- a/Cone_spanners_2/examples/Cone_spanners_2/theta_io.cpp +++ b/Cone_spanners_2/examples/Cone_spanners_2/theta_io.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -70,7 +71,7 @@ int main(int argc, char ** argv) // obtain the number of vertices in the constructed graph unsigned int n = boost::num_vertices(g); // generate gnuplot files for plotting this graph - std::string file_prefix = "t" + std::to_string(k) + "n" + std::to_string(n); + std::string file_prefix = "t" + boost::lexical_cast(k) + "n" + boost::lexical_cast(n); CGAL::gnuplot_output_2(g, file_prefix); return 0; diff --git a/Cone_spanners_2/test/Cone_spanners_2/theta_exact.cpp b/Cone_spanners_2/test/Cone_spanners_2/theta_exact.cpp index 6ea6692e34d..ced8e6ab2e3 100644 --- a/Cone_spanners_2/test/Cone_spanners_2/theta_exact.cpp +++ b/Cone_spanners_2/test/Cone_spanners_2/theta_exact.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -70,7 +71,7 @@ int main(int argc, char ** argv) // obtain the number of vertices in the constructed graph unsigned int n = boost::num_vertices(g); // generate gnuplot files for plotting this graph - std::string file_prefix = "t" + std::to_string(k) + "n" + std::to_string(n); + std::string file_prefix = "t" + boost::lexical_cast(k) + "n" + boost::lexical_cast(n); CGAL::gnuplot_output_2(g, file_prefix); return 0; diff --git a/Cone_spanners_2/test/Cone_spanners_2/theta_inexact.cpp b/Cone_spanners_2/test/Cone_spanners_2/theta_inexact.cpp index d71a6e7f50b..f2d045ac860 100644 --- a/Cone_spanners_2/test/Cone_spanners_2/theta_inexact.cpp +++ b/Cone_spanners_2/test/Cone_spanners_2/theta_inexact.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -71,7 +72,7 @@ int main(int argc, char ** argv) // obtain the number of vertices in the constructed graph unsigned int n = boost::num_vertices(g); // generate gnuplot files for plotting this graph - std::string file_prefix = "t" + std::to_string(k) + "n" + std::to_string(n); + std::string file_prefix = "t" + boost::lexical_cast(k) + "n" + boost::lexical_cast(n); CGAL::gnuplot_output_2(g, file_prefix); return 0; diff --git a/Cone_spanners_2/test/Cone_spanners_2/yao_inexact.cpp b/Cone_spanners_2/test/Cone_spanners_2/yao_inexact.cpp index ae6e8b6df24..d4bde8f6e7d 100644 --- a/Cone_spanners_2/test/Cone_spanners_2/yao_inexact.cpp +++ b/Cone_spanners_2/test/Cone_spanners_2/yao_inexact.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -72,7 +73,7 @@ int main(int argc, char ** argv) unsigned int n = boost::num_vertices(g); // generate gnuplot files for plotting this graph - std::string fileprefix = "y" + std::to_string(k) + "n" + std::to_string(n); + std::string fileprefix = "y" + boost::lexical_cast(k) + "n" + boost::lexical_cast(n); CGAL::gnuplot_output_2(g, fileprefix); return 0;