We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23444ad commit 18f3eddCopy full SHA for 18f3edd
category/async/io.cpp
@@ -98,11 +98,16 @@ namespace detail
98
}
99
100
within_completions_holder(within_completions_holder const &) = delete;
101
- within_completions_holder(within_completions_holder &&) = default;
+
102
+ within_completions_holder(within_completions_holder &&other) noexcept
103
+ : parent(other.parent)
104
+ {
105
+ other.parent = nullptr;
106
+ }
107
108
~within_completions_holder()
109
{
- if (0 == --parent->within_completions_count) {
110
+ if (parent && 0 == --parent->within_completions_count) {
111
parent->within_completions_reached_zero();
112
113
0 commit comments