mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 08:21:32 +01:00
[atomic] Try fixing MSVC
D:\a\harfbuzz\harfbuzz\src\hb-atomic.hh(212): note: 'hb_atomic_t<hb_svg_doc_cache_t *> &hb_atomic_t<hb_svg_doc_cache_t *>::operator =(const hb_atomic_t<hb_svg_doc_cache_t *> &)': function was implicitly deleted because a data member invokes a deleted or inaccessible function 'std::atomic<T *> &std::atomic<T *>::operator =(const std::atomic<T *> &)'
with
[
T=hb_svg_doc_cache_t
]
This commit is contained in:
1 parent
a448c4e235
commit
f7d4646d31
1 file changed
+3
@@ -193,6 +193,9 @@ struct hb_atomic_t<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 <typename C>
|
||||
|
||||
Reference in new issue
Block a user