From f7d4646d3176d8cc48ad895ec6bc1734caa02c8c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 24 Feb 2026 16:57:44 -0300 Subject: [PATCH] [atomic] Try fixing MSVC D:\a\harfbuzz\harfbuzz\src\hb-atomic.hh(212): note: 'hb_atomic_t &hb_atomic_t::operator =(const hb_atomic_t &)': function was implicitly deleted because a data member invokes a deleted or inaccessible function 'std::atomic &std::atomic::operator =(const std::atomic &)' with [ T=hb_svg_doc_cache_t ] --- src/hb-atomic.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hb-atomic.hh b/src/hb-atomic.hh index 41e0dcc15..5ea99e391 100644 --- a/src/hb-atomic.hh +++ b/src/hb-atomic.hh @@ -193,6 +193,9 @@ struct hb_atomic_t T *get_acquire () const { return v.load (std::memory_order_acquire); } bool cmpexch (T *old, T *new_) { return v.compare_exchange_weak (old, new_, std::memory_order_acq_rel, std::memory_order_relaxed); } + hb_atomic_t &operator= (const hb_atomic_t& o) { set_relaxed (o.get_relaxed ()); return *this; } + hb_atomic_t &operator= (hb_atomic_t&& o){ set_relaxed (o.get_relaxed ()); o.set_relaxed ({}); return *this; } + operator bool () const { return get_acquire () != nullptr; } T *operator->() const { return get_acquire (); } template