Skip to content

Commit 82116c8

Browse files
committed
io_lockable fix for reopen
1 parent 50932d9 commit 82116c8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/fast_io_core_impl/io_lockable.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ struct basic_general_io_lockable_nonmovable
4949
}
5050
else
5151
{
52-
::std::destroy_at(__builtin_addressof(handle));
53-
::std::construct_at(__builtin_addressof(handle), ::std::forward<Args>(args)...);
52+
this->handle = T(::std::forward<Args>(args)...);
5453
}
5554
}
5655
constexpr void close() noexcept(noexcept(handle.close()))

0 commit comments

Comments
 (0)