Fix collision with global convert function (#425)

(cherry picked from commit 796beaaddb)
This commit is contained in:
Victor Zverovich authored and Jonathan Müller committed 2017-06-08 11:28:43 +02:00
1 parent baedba07ca
commit a55df13598
2 files changed
+11 -1

No files matched your search

+8
View File
@@ -1653,3 +1653,11 @@ FMT_VARIADIC(void, custom_format, const char *)
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);
}