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) {