Third try at fixing VS build
authorBehdad Esfahbod <behdad@behdad.org>
Sat, 1 Jun 2019 05:11:27 +0000 (22:11 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Sat, 1 Jun 2019 05:49:34 +0000 (22:49 -0700)
https://github.com/harfbuzz/harfbuzz/issues/1730

src/hb-algs.hh

index 6e6217b..d195c77 100644 (file)
@@ -173,7 +173,7 @@ auto hb_partial (Appl&& a, V&& v) HB_AUTO_RETURN
   (hb_partial<Pos> ( \
                    /* The following ugly line is a hacky replacement for "this". */ \
                    /* https://github.com/harfbuzz/harfbuzz/issues/1730 */ \
-                   &*this, \
+                   (true?this:nullptr), \
                    hb_forward<_T> (_v))) \
   static_assert (true, "")