Produce a compile error when using wide fill character on a narrow stream.

This commit is contained in:
Victor Zverovich
2014-01-08 08:17:38 -08:00
parent fa3efb1330
commit a1bd3358bb
3 changed files with 64 additions and 41 deletions

View File

@@ -1227,7 +1227,7 @@ TEST(FormatterTest, FormatUsingIOStreams) {
class Answer {};
template <typename Char>
void Format(BasicWriter<Char> &f, const fmt::FormatSpec &spec, Answer) {
void Format(BasicWriter<Char> &f, const fmt::FormatSpec<Char> &spec, Answer) {
f.Write("42", spec);
}