Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liss-h committed Sep 17, 2024
1 parent 03aaf95 commit 7614c54
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/dice/ffi/metall_internal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,17 @@ namespace dice::metall_ffi::internal {
template<typename T>
using allocator_type = typename metall::manager::template allocator_type<T>;

using metall::manager::manager;
metall_manager(metall::create_only_t op, char const *path) : manager_{op, path},
read_only_{false} {
}

metall_manager(metall::open_only_t op, char const *path) : manager_{op, path},
read_only_{false} {
}

metall_manager(metall::open_read_only_t op, char const *path) : manager_{op, path},
read_only_{true} {
}

[[nodiscard]] bool read_only() const noexcept {
return read_only_;
Expand Down

0 comments on commit 7614c54

Please sign in to comment.