aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/ref.hh
diff options
context:
space:
mode:
authorQyriad <qyriad@qyriad.me>2024-05-08 18:50:03 -0600
committerQyriad <qyriad@qyriad.me>2024-05-09 13:02:45 +0000
commit2bbe3efd169534f538184ff788eecb398ead70a4 (patch)
treebe52c34869f0f1301c4789d57af52becef64e454 /src/libutil/ref.hh
parent010bbd1b0e5d57013774ef655cbe886d7a6b434e (diff)
add and fix -Wdeprecated-copy
*so* many warnings, from only two definitions Change-Id: If2561cd500c05a1e33cce984faf9f3e42a8a95ac
Diffstat (limited to 'src/libutil/ref.hh')
-rw-r--r--src/libutil/ref.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/ref.hh b/src/libutil/ref.hh
index 5d0c3696d..03aa64273 100644
--- a/src/libutil/ref.hh
+++ b/src/libutil/ref.hh
@@ -77,6 +77,8 @@ 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;