From 36af75bc949fcff09c2d6744737cd48075fda16a Mon Sep 17 00:00:00 2001 From: kuepper Date: Fri, 17 Sep 2004 17:05:28 +0000 Subject: [PATCH] add conditional includes for sstream --- eo/tutorial/Lesson1/FirstBitGA.cpp | 9 +++++++++ eo/tutorial/Lesson1/FirstRealGA.cpp | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/eo/tutorial/Lesson1/FirstBitGA.cpp b/eo/tutorial/Lesson1/FirstBitGA.cpp index 4e7ea1ab1..f12344b71 100644 --- a/eo/tutorial/Lesson1/FirstBitGA.cpp +++ b/eo/tutorial/Lesson1/FirstBitGA.cpp @@ -5,10 +5,19 @@ // An instance of a VERY simple Bitstring Genetic Algorithm // //----------------------------------------------------------------------------- + +#ifdef HAVE_CONFIG_H +#include +#endif + // standard includes #include // runtime_error #include // cout +#ifdef HAVE_SSTREAM +#include +#else #include // ostrstream, istrstream +#endif // the general include for eo diff --git a/eo/tutorial/Lesson1/FirstRealGA.cpp b/eo/tutorial/Lesson1/FirstRealGA.cpp index 76556882d..392aff4aa 100644 --- a/eo/tutorial/Lesson1/FirstRealGA.cpp +++ b/eo/tutorial/Lesson1/FirstRealGA.cpp @@ -5,10 +5,18 @@ // An instance of a VERY simple Real-coded Genetic Algorithm // //----------------------------------------------------------------------------- +#ifdef HAVE_CONFIG_H +#include +#endif + // standard includes #include // runtime_error #include // cout +#ifdef HAVE_SSTREAM +#include +#else #include // ostrstream, istrstream +#endif // the general include for eo