Add a brief comment explaining why the overload is needed.

This commit is contained in:
Nicolas Lesser 2018-12-09 12:30:22 +01:00
parent c085401702
commit a690029d9c
No known key found for this signature in database
GPG Key ID: 55F9BC675F85A2DF

View File

@ -508,6 +508,10 @@ namespace internal {
struct dummy_string_view { typedef void char_type; }; struct dummy_string_view { typedef void char_type; };
dummy_string_view to_string_view(...); dummy_string_view to_string_view(...);
// The following overload disables using std::FILE as a character type, which is
// needed because or else
// fmt::print(stderr, fmt::emphasis::bold, "");
// would take stderr as the format string.
dummy_string_view to_string_view(const std::FILE *); dummy_string_view to_string_view(const std::FILE *);
using fmt::v5::to_string_view; using fmt::v5::to_string_view;