@@ -800,10 +800,10 @@ struct string_convertible_probe {
800800};
801801
802802template <typename T, typename = void >
803- struct has_unambiguous_symbol_for_overload : std::false_type {};
803+ struct has_unambiguous_string_convertible_overload : std::false_type {};
804804
805805template <typename T>
806- struct has_unambiguous_symbol_for_overload <
806+ struct has_unambiguous_string_convertible_overload <
807807 T,
808808 std::void_t <decltype (string_convertible_probe::select(std::declval<T>()))>>
809809 : std::true_type {};
@@ -814,11 +814,11 @@ struct has_unambiguous_symbol_for_overload<
814814// Exclude nullptr because it matches the pointer overloads equally well and
815815// cannot safely initialize a std::string_view.
816816template <typename T>
817- using enable_if_ambiguous_symbol_for_t =
817+ using enable_if_ambiguous_string_convertible_t =
818818 std::enable_if_t <!std::is_null_pointer_v<std::decay_t <T>> &&
819819 std::is_convertible_v<T, const std::string&> &&
820820 std::is_convertible_v<T, std::string_view> &&
821- !has_unambiguous_symbol_for_overload <T>::value,
821+ !has_unambiguous_string_convertible_overload <T>::value,
822822 int >;
823823
824824} // namespace details
@@ -870,7 +870,8 @@ class Symbol : public Name {
870870
871871 // Resolve otherwise ambiguous string-like arguments through the
872872 // std::string_view overload
873- template <typename T, details::enable_if_ambiguous_symbol_for_t <T&&> = 0 >
873+ template <typename T,
874+ details::enable_if_ambiguous_string_convertible_t <T&&> = 0 >
874875 static MaybeOrValue<Symbol> For (napi_env env, T&& description);
875876
876877 // Create a symbol in the global registry, C style string (null terminated)
0 commit comments