From 8aaecbb5832568135f6149254ed9e17ac4310341 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 31 May 2019 21:41:40 -0700 Subject: [PATCH] Second VS fix try https://github.com/harfbuzz/harfbuzz/issues/1730 --- src/hb-algs.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-algs.hh b/src/hb-algs.hh index 7f5e4d8ff..6e6217b4b 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -171,9 +171,9 @@ auto hb_partial (Appl&& a, V&& v) HB_AUTO_RETURN template \ auto operator () (_T&& _v) const HB_AUTO_RETURN \ (hb_partial ( \ - /* The following ugly line is a hack hacky replacement for "this". */ \ + /* The following ugly line is a hacky replacement for "this". */ \ /* https://github.com/harfbuzz/harfbuzz/issues/1730 */ \ - const_cast *> (this), \ + &*this, \ hb_forward<_T> (_v))) \ static_assert (true, "")