Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liss-h committed Dec 9, 2024
1 parent 1011572 commit 2012f8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dice/ffi/metall.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include <dice/ffi/metall.h>
#include <dice/ffi/metall_internal.hpp>

#include <functional>

using metall_manager_t = dice::metall_ffi::internal::metall_manager;

template<auto open_mode>
Expand Down Expand Up @@ -30,7 +32,7 @@ metall_manager *create_impl(char const *path, Create &&create) {
return nullptr;
}

auto *manager = std::invoke(create, path);
auto *manager = std::invoke(std::forward<Create>(create), path);
if (!manager->check_sanity()) {
delete manager;
errno = ENOTRECOVERABLE;
Expand Down

0 comments on commit 2012f8a

Please sign in to comment.