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

Default constructor #30

Merged
merged 2 commits into from
Jun 21, 2021
Merged

Default constructor #30

merged 2 commits into from
Jun 21, 2021

Conversation

CMurtagh-LGTM
Copy link
Contributor

@CMurtagh-LGTM CMurtagh-LGTM commented Jun 20, 2021

Add default constructor to ofstream and ifstream.
Added is_open, open and close to work with potentially closed or unopened files.

Solves #28.

@ferdymercury ferdymercury merged commit becd7a5 into mateidavid:master Jun 21, 2021
@ferdymercury
Copy link
Collaborator

I added FStream_Type _fs {};
so that there is no compilation warning (-Weffc++) when using the default constructor.

@ferdymercury ferdymercury linked an issue Jun 21, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default Constructible fstream
2 participants