-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When a File object goes out of scope, its resources are not freed. This patch: - Adds a destructor to free this memory and close the file handle when the object is destroyed. - Deletes the copy constructor and copy assignment operator, as this class is not copyable (at least, not without more significant future work). - Adds move semantics. --- Fixes #66.
- Loading branch information
1 parent
e20b7f3
commit e54b984
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters