1
0
Fork 0
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:
Eelco Dolstra 2025-05-14 14:24:57 +02:00
parent e5e5c819dd
commit 7d89e46f65

View file

@ -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