Commit a40f0ea8 authored by Xavier Thompson's avatar Xavier Thompson

Disable unsafe Forked copy

parent 1369f985
...@@ -54,6 +54,9 @@ namespace typon ...@@ -54,6 +54,9 @@ namespace typon
} }
} }
Forked(const Forked &) = delete;
Forked& operator=(const Forked &) = delete;
Forked& operator=(Forked && other) Forked& operator=(Forked && other)
noexcept(std::is_nothrow_move_constructible_v<T>) noexcept(std::is_nothrow_move_constructible_v<T>)
{ {
...@@ -128,6 +131,9 @@ namespace typon ...@@ -128,6 +131,9 @@ namespace typon
} }
} }
Forked(const Forked &) = delete;
Forked& operator=(const Forked &) = delete;
Forked(Forked && other) noexcept(std::is_nothrow_move_constructible_v<T>) Forked(Forked && other) noexcept(std::is_nothrow_move_constructible_v<T>)
{ {
_result = other._result; _result = other._result;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment