Oops, corrected error in ctor(istream)
This commit is contained in:
parent
69d9ee7a0f
commit
9aaafc2cdb
1 changed files with 2 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ public :
|
||||||
Init externalEo with the struct itself and set fitness to zero
|
Init externalEo with the struct itself and set fitness to zero
|
||||||
*/
|
*/
|
||||||
eoExternalEO(const External& ext) : EO<Fit>(), External(ext) {}
|
eoExternalEO(const External& ext) : EO<Fit>(), External(ext) {}
|
||||||
eoExternalEO(istream& is) : EO<Fit>(), Base<ext>() { readFrom(is); }
|
eoExternalEO(istream& is) : EO<Fit>(), External(ext) { readFrom(is); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read object, the external struct needs to have an operator>> defined
|
* Read object, the external struct needs to have an operator>> defined
|
||||||
|
|
@ -79,6 +79,7 @@ std::ostream& operator<<(std::ostream& os, const eoExternalEO<F, External>& eo)
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// To remove ambiguities between EO<F> and External, streaming operators are defined yet again
|
||||||
template <class F, class External>
|
template <class F, class External>
|
||||||
std::istream& operator>>(std::istream& is, eoExternalEO<F, External>& eo)
|
std::istream& operator>>(std::istream& is, eoExternalEO<F, External>& eo)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Reference in a new issue