Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readFrom should be a free function to allow for EOT with constructors without arguments #51

Open
nojhan opened this issue Aug 27, 2020 · 0 comments

Comments

@nojhan
Copy link
Owner

nojhan commented Aug 27, 2020

Currently, readFrom is a member of eoSerial, thus it necessitate an existing instance to be called.
This makes constructors without parameter mandatory, and is error prone.
For instance, it allows some operators to create empty EOT instances (like when using resize) on the fly.

The fix would be to make readFrom free friend functions, in which one can instantiate with mandatory parameters, just like std::begin.

jdreo pushed a commit to jdreo/paradiseo that referenced this issue Jul 15, 2021
Update directory of docs files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant