add conditional includes for sstream

This commit is contained in:
kuepper 2004-09-17 17:05:28 +00:00
commit 36af75bc94
2 changed files with 17 additions and 0 deletions

View file

@ -5,10 +5,19 @@
// An instance of a VERY simple Bitstring Genetic Algorithm // An instance of a VERY simple Bitstring Genetic Algorithm
// //
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
// standard includes // standard includes
#include <stdexcept> // runtime_error #include <stdexcept> // runtime_error
#include <iostream> // cout #include <iostream> // cout
#ifdef HAVE_SSTREAM
#include <sstream>
#else
#include <strstream> // ostrstream, istrstream #include <strstream> // ostrstream, istrstream
#endif
// the general include for eo // the general include for eo

View file

@ -5,10 +5,18 @@
// An instance of a VERY simple Real-coded Genetic Algorithm // An instance of a VERY simple Real-coded Genetic Algorithm
// //
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
// standard includes // standard includes
#include <stdexcept> // runtime_error #include <stdexcept> // runtime_error
#include <iostream> // cout #include <iostream> // cout
#ifdef HAVE_SSTREAM
#include <sstream>
#else
#include <strstream> // ostrstream, istrstream #include <strstream> // ostrstream, istrstream
#endif
// the general include for eo // the general include for eo