Fix collision with global convert function (#425)

This commit is contained in:
Victor Zverovich
2016-11-19 12:05:49 -08:00
parent def687462c
commit 796beaaddb
2 changed files with 11 additions and 1 deletions
+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);
}