mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 02:36:16 +02:00
fix(libutils): make ref move assignable/constructible
This commit is contained in:
parent
17b49134fa
commit
af63d67ba5
1 changed files with 0 additions and 7 deletions
|
@ -18,11 +18,6 @@ private:
|
||||||
std::shared_ptr<T> p;
|
std::shared_ptr<T> p;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
ref(const ref<T> & r)
|
|
||||||
: p(r.p)
|
|
||||||
{ }
|
|
||||||
|
|
||||||
explicit ref(const std::shared_ptr<T> & p)
|
explicit ref(const std::shared_ptr<T> & p)
|
||||||
: p(p)
|
: p(p)
|
||||||
{
|
{
|
||||||
|
@ -75,8 +70,6 @@ public:
|
||||||
return ref<T2>((std::shared_ptr<T2>) p);
|
return ref<T2>((std::shared_ptr<T2>) p);
|
||||||
}
|
}
|
||||||
|
|
||||||
ref<T> & operator=(ref<T> const & rhs) = default;
|
|
||||||
|
|
||||||
bool operator == (const ref<T> & other) const
|
bool operator == (const ref<T> & other) const
|
||||||
{
|
{
|
||||||
return p == other.p;
|
return p == other.p;
|
||||||
|
|
Loading…
Reference in a new issue