Skip to content

Commit 8bca9ef

Browse files
committed
fix nix build
1 parent 2dafe98 commit 8bca9ef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Zmeya.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,13 @@ class String
328328

329329
ZMEYA_NODISCARD inline bool operator==(const String& left, const char* const right) noexcept { return left.isEqual(right); }
330330
ZMEYA_NODISCARD inline bool operator!=(const String& left, const char* const right) noexcept { return !left.isEqual(right); }
331+
331332
ZMEYA_NODISCARD inline bool operator==(const char* const left, const String& right) noexcept { return right.isEqual(left); }
332333
ZMEYA_NODISCARD inline bool operator!=(const char* const left, const String& right) noexcept { return !right.isEqual(left); }
334+
333335
ZMEYA_NODISCARD inline bool operator==(const String& left, const std::string& right) noexcept { return left.isEqual(right.c_str()); }
334336
ZMEYA_NODISCARD inline bool operator!=(const String& left, const std::string& right) noexcept { return !left.isEqual(right.c_str()); }
337+
335338
ZMEYA_NODISCARD inline bool operator==(const std::string& left, const String& right) noexcept { return right.isEqual(left.c_str()); }
336339
ZMEYA_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
}

0 commit comments

Comments
 (0)