mirror of
https://github.com/Naios/continuable.git
synced 2026-02-16 23:29:48 +08:00
Fix the remaining copy bug in expected
This commit is contained in:
parent
71001cecc3
commit
baf47b129c
@ -154,10 +154,10 @@ template <typename Base /*, bool IsCopyable = false*/>
|
|||||||
struct expected_copy_base<Base, false> : expected_move_base<Base> {
|
struct expected_copy_base<Base, false> : expected_move_base<Base> {
|
||||||
constexpr expected_copy_base() = default;
|
constexpr expected_copy_base() = default;
|
||||||
|
|
||||||
expected_copy_base(expected_copy_base const&) = default;
|
expected_copy_base(expected_copy_base const&) = delete;
|
||||||
explicit expected_copy_base(expected_copy_base&& right) = delete;
|
explicit expected_copy_base(expected_copy_base&& right) = default;
|
||||||
expected_copy_base& operator=(expected_copy_base const&) = default;
|
expected_copy_base& operator=(expected_copy_base const&) = delete;
|
||||||
expected_copy_base& operator=(expected_copy_base&& right) = delete;
|
expected_copy_base& operator=(expected_copy_base&& right) = default;
|
||||||
};
|
};
|
||||||
} // namespace detail
|
} // namespace detail
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user