提交 5a1b5c0a 编写于 作者: B Behdad Esfahbod

Try fixing VS builds

Hopefully fixes https://github.com/harfbuzz/harfbuzz/issues/1730
上级 66381fb7
...@@ -169,7 +169,12 @@ auto hb_partial (Appl&& a, V&& v) HB_AUTO_RETURN ...@@ -169,7 +169,12 @@ auto hb_partial (Appl&& a, V&& v) HB_AUTO_RETURN
#define HB_PARTIALIZE(Pos) \ #define HB_PARTIALIZE(Pos) \
template <typename _T> \ template <typename _T> \
auto operator () (_T&& _v) const HB_AUTO_RETURN (hb_partial<Pos> (this, hb_forward<_T> (_v))) \ auto operator () (_T&& _v) const HB_AUTO_RETURN \
(hb_partial<Pos> ( \
/* The following ugly line is a hack hacky replacement for "this". */ \
/* https://github.com/harfbuzz/harfbuzz/issues/1730 */ \
const_cast<const hb_decay<decltype (*this)> *> (this), \
hb_forward<_T> (_v))) \
static_assert (true, "") static_assert (true, "")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册