[iter] Use different SFINAE scheme to make MSVC happy
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 3 Apr 2019 21:18:19 +0000 (14:18 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 3 Apr 2019 21:18:19 +0000 (14:18 -0700)
commitd419a9a4376de7b2ae1dec7df09f8d034cc2d039
tree755baf994bb1ac2e4ef3807d3193b68da8dbf2e5
parent2778df7972f537192b51cd0719adf2ab4d1f3397
[iter] Use different SFINAE scheme to make MSVC happy

From Orvid King: TLDR; MSVC has some issues using sizeof(declval<T>()) for
SFINAE of templated types, so I just used SFINAE in a different context where
MSVC doesn't have the issue.
src/hb-iter.hh