#ifdef HAVE_CONFIG_H #include #endif #include #include // runtime_error #ifdef HAVE_SSTREAM #include #else #include #endif #include #include typedef eoBit Indi; // A bitstring with fitness double #include "binary_value.h" using namespace std; void main_function(int argc, char **argv) { eoEvalFuncPtr & > eval (binary_value) ; eoListener listen (argc, argv) ; eoEvaluator evaluator ("Mars", listen, eval) ; // Runs evaluator () ; } // A main that catches the exceptions int main(int argc, char **argv) { try { main_function(argc, argv); } catch(exception& e) { cout << "Exception: " << e.what() << '\n'; } return 1; }