mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
Sync: Support moving out of another Sync
This commit is contained in:
parent
e5e5c819dd
commit
7d89e46f65
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ public:
|
|||
SyncBase() { }
|
||||
SyncBase(const T & data) : data(data) { }
|
||||
SyncBase(T && data) noexcept : data(std::move(data)) { }
|
||||
SyncBase(SyncBase && other) noexcept : data(std::move(*other.lock())) { }
|
||||
|
||||
template<class L>
|
||||
class Lock
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue