Fix collision with global convert function (#425)
diff --git a/fmt/format.h b/fmt/format.h
index 1ed934c..d926d4c 100644
--- a/fmt/format.h
+++ b/fmt/format.h
@@ -1155,7 +1155,9 @@
 
 template<typename T>
 struct ConvertToInt {
-  enum { enable_conversion = sizeof(convert(get<T>())) == sizeof(Yes) };
+  enum {
+    enable_conversion = sizeof(fmt::internal::convert(get<T>())) == sizeof(Yes)
+  };
   enum { value = ConvertToIntImpl2<T, enable_conversion>::value };
 };
 
diff --git a/test/format-test.cc b/test/format-test.cc
index 856c933..c812b06 100644
--- a/test/format-test.cc
+++ b/test/format-test.cc
@@ -1653,3 +1653,11 @@
 TEST(FormatTest, CustomArgFormatter) {
   custom_format("{}", 42);
 }
+
+void convert(int);
+
+// Check if there is no collision with convert function in the global namespace.
+TEST(FormatTest, ConvertCollision) {
+  fmt::format("{}", 42);
+}
+