diff --git a/include/msgpack/v1/object_fwd.hpp b/include/msgpack/v1/object_fwd.hpp index 2562b416..951dca0e 100644 --- a/include/msgpack/v1/object_fwd.hpp +++ b/include/msgpack/v1/object_fwd.hpp @@ -53,16 +53,16 @@ template struct has_as { private: template - static auto check(U*) -> + static auto check_(U*) -> // Check v1 specialization typename std::is_same< decltype(adaptor::as()(std::declval())), T >::type; template - static std::false_type check(...); + static std::false_type check_(...); public: - using type = decltype(check(MSGPACK_NULLPTR)); + using type = decltype(check_(MSGPACK_NULLPTR)); static constexpr bool value = type::value; }; diff --git a/include/msgpack/v2/object_fwd.hpp b/include/msgpack/v2/object_fwd.hpp index 9c44aae6..45a63118 100644 --- a/include/msgpack/v2/object_fwd.hpp +++ b/include/msgpack/v2/object_fwd.hpp @@ -79,7 +79,7 @@ template struct has_as { private: template - static auto check(U*) -> + static auto check_(U*) -> typename std::enable_if< // check v2 specialization std::is_same< @@ -92,9 +92,9 @@ private: std::true_type >::type; template - static std::false_type check(...); + static std::false_type check_(...); public: - using type = decltype(check(MSGPACK_NULLPTR)); + using type = decltype(check_(MSGPACK_NULLPTR)); static constexpr bool value = type::value; }; diff --git a/include/msgpack/v3/object_fwd.hpp b/include/msgpack/v3/object_fwd.hpp index d282f1b4..a0ed44ae 100644 --- a/include/msgpack/v3/object_fwd.hpp +++ b/include/msgpack/v3/object_fwd.hpp @@ -36,7 +36,7 @@ template struct has_as { private: template - static auto check(U*) -> + static auto check_(U*) -> typename std::enable_if< // check v3 specialization std::is_same< @@ -52,9 +52,9 @@ private: std::true_type >::type; template - static std::false_type check(...); + static std::false_type check_(...); public: - using type = decltype(check(MSGPACK_NULLPTR)); + using type = decltype(check_(MSGPACK_NULLPTR)); static constexpr bool value = type::value; };