From 7614c5498a5a13ebe45ed5b9639337caa094d7d6 Mon Sep 17 00:00:00 2001 From: Liss Heidrich <31625940+liss-h@users.noreply.github.com> Date: Tue, 17 Sep 2024 12:15:09 +0200 Subject: [PATCH] fix --- src/dice/ffi/metall_internal.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/dice/ffi/metall_internal.hpp b/src/dice/ffi/metall_internal.hpp index bbf5060..880f221 100644 --- a/src/dice/ffi/metall_internal.hpp +++ b/src/dice/ffi/metall_internal.hpp @@ -24,7 +24,17 @@ namespace dice::metall_ffi::internal { template using allocator_type = typename metall::manager::template allocator_type; - 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_;