mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 08:12:29 +00:00
fix(libutils): make ref move assignable/constructible
This commit is contained in:
parent
17b49134fa
commit
af63d67ba5
@ -18,11 +18,6 @@ private:
|
||||
std::shared_ptr<T> p;
|
||||
|
||||
public:
|
||||
|
||||
ref(const ref<T> & r)
|
||||
: p(r.p)
|
||||
{ }
|
||||
|
||||
explicit ref(const std::shared_ptr<T> & p)
|
||||
: p(p)
|
||||
{
|
||||
@ -75,8 +70,6 @@ public:
|
||||
return ref<T2>((std::shared_ptr<T2>) p);
|
||||
}
|
||||
|
||||
ref<T> & operator=(ref<T> const & rhs) = default;
|
||||
|
||||
bool operator == (const ref<T> & other) const
|
||||
{
|
||||
return p == other.p;
|
||||
|
Loading…
Reference in New Issue
Block a user