From 9aaafc2cdb418d512c386f6ec3f5662dfcfa8c82 Mon Sep 17 00:00:00 2001 From: mac Date: Thu, 25 May 2000 07:26:13 +0000 Subject: [PATCH] Oops, corrected error in ctor(istream) --- eo/src/other/eoExternalEO.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eo/src/other/eoExternalEO.h b/eo/src/other/eoExternalEO.h index 51ad7795..5094a7ec 100644 --- a/eo/src/other/eoExternalEO.h +++ b/eo/src/other/eoExternalEO.h @@ -48,7 +48,7 @@ public : Init externalEo with the struct itself and set fitness to zero */ eoExternalEO(const External& ext) : EO(), External(ext) {} - eoExternalEO(istream& is) : EO(), Base() { readFrom(is); } + eoExternalEO(istream& is) : EO(), External(ext) { readFrom(is); } /** * Read object, the external struct needs to have an operator>> defined @@ -79,6 +79,7 @@ std::ostream& operator<<(std::ostream& os, const eoExternalEO& eo) return os; } +/// To remove ambiguities between EO and External, streaming operators are defined yet again template std::istream& operator>>(std::istream& is, eoExternalEO& eo) {