Skip to content

Commit 7f81b6f

Browse files
committed
Fix defer::to_opaque
1 parent 3a290ec commit 7f81b6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/openPMD/auxiliary/Defer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ struct defer_type
2323

2424
auto to_opaque() && -> defer_type<std::function<void()>>
2525
{
26-
do_run_this = false;
2726
if (!do_run_this)
2827
{
2928
return defer_type<std::function<void()>>{{}, false};
3029
}
3130
else
3231
{
32+
do_run_this = false;
3333
return defer_type<std::function<void()>>{
3434
std::function<void()>{std::move(functor)}};
3535
}

0 commit comments

Comments
 (0)