File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -328,10 +328,13 @@ class String
328328
329329ZMEYA_NODISCARD inline bool operator ==(const String& left, const char * const right) noexcept { return left.isEqual (right); }
330330ZMEYA_NODISCARD inline bool operator !=(const String& left, const char * const right) noexcept { return !left.isEqual (right); }
331+
331332ZMEYA_NODISCARD inline bool operator ==(const char * const left, const String& right) noexcept { return right.isEqual (left); }
332333ZMEYA_NODISCARD inline bool operator !=(const char * const left, const String& right) noexcept { return !right.isEqual (left); }
334+
333335ZMEYA_NODISCARD inline bool operator ==(const String& left, const std::string& right) noexcept { return left.isEqual (right.c_str ()); }
334336ZMEYA_NODISCARD inline bool operator !=(const String& left, const std::string& right) noexcept { return !left.isEqual (right.c_str ()); }
337+
335338ZMEYA_NODISCARD inline bool operator ==(const std::string& left, const String& right) noexcept { return right.isEqual (left.c_str ()); }
336339ZMEYA_NODISCARD inline bool operator !=(const std::string& left, const String& right) noexcept { return !right.isEqual (left.c_str ()); }
337340
@@ -708,7 +711,7 @@ template <typename T> class BlobPtr
708711
709712 bool isEqual (const BlobPtr<T>& other) const
710713 {
711- if (blob != other.blob )
714+ if (blob. lock () != other.blob . lock () )
712715 {
713716 return false ;
714717 }
You can’t perform that action at this time.
0 commit comments