[GH-ISSUE #2261] Use explicit ownership for all resources #1138

Open
opened 2026-03-04 01:51:41 +03:00 by kerem · 0 comments
Owner

Originally created by @gaul on GitHub (Aug 13, 2023).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2261

C++11 enables s3fs to manage resources explicitly, e.g., via std::unique_ptr and std::move, instead of ad-hoc management via delete. This can simplify error handling and we can eliminate most or maybe all calls to delete.

We should be able to write some wrappers for FILE* and file descriptors as well.

Originally created by @gaul on GitHub (Aug 13, 2023). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2261 C++11 enables s3fs to manage resources explicitly, e.g., via `std::unique_ptr` and `std::move`, instead of ad-hoc management via `delete`. This can simplify error handling and we can eliminate most or maybe all calls to `delete`. We should be able to write some wrappers for `FILE*` and file descriptors as well.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#1138
No description provided.