add and fix -Wdeprecated-copy

*so* many warnings, from only two definitions

Change-Id: If2561cd500c05a1e33cce984faf9f3e42a8a95ac
This commit is contained in:
Qyriad
2024-05-09 13:02:45 +00:00
parent 010bbd1b0e
commit 2bbe3efd16
3 changed files with 5 additions and 0 deletions
+2
View File
@@ -185,6 +185,8 @@ public:
HintFmt(const HintFmt & hf) : fmt(hf.fmt) {}
HintFmt & operator=(HintFmt const & rhs) = default;
std::string str() const
{
return fmt.str();
+2
View File
@@ -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;