Fix file descriptor leak

This commit is contained in:
loki
2021-06-06 20:57:42 +02:00
parent 7f636a25a8
commit 84c55d6efc
3 changed files with 16 additions and 3 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ struct argument_type<T(U)> { typedef U type; };
move_t(Args &&...args) : el { std::forward<Args>(args)... } {} \
move_t(const move_t &) = delete; \
\
explicit move_t(move_t &&other) : el { std::move(other.el) } { \
move_t(move_t &&other) noexcept : el { std::move(other.el) } { \
other.el = element_type { init_val }; \
} \
\