Use `static_cast<>` instead of a C-style cast.

Fixes #287.

Change-Id: I8b67c0b5088bb1a06a47017528bfd8e6f1ec4cca
Reviewed-on: https://code-review.googlesource.com/c/re2/+/58230
Reviewed-by: Paul Wankadia <junyer@google.com>
diff --git a/re2/re2.h b/re2/re2.h
index 15ef0b3..09c1fbe 100644
--- a/re2/re2.h
+++ b/re2/re2.h
@@ -830,8 +830,9 @@
 #if !defined(_MSC_VER)
   template <typename T>
   using CanParseFrom = typename std::enable_if<
-      std::is_member_function_pointer<decltype(
-          (bool (T::*)(const char*, size_t))&T::ParseFrom)>::value,
+      std::is_member_function_pointer<
+          decltype(static_cast<bool (T::*)(const char*, size_t)>(
+              &T::ParseFrom))>::value,
       int>::type;
 #endif