Add double support to compile

This commit is contained in:
Victor Zverovich 2019-10-30 20:45:29 -07:00
parent 3487f1b9cd
commit 6bfc9af8c9

View File

@ -373,6 +373,13 @@ OutputIt format_default(OutputIt out, T value) {
return std::copy(fi.data(), fi.data() + fi.size(), out); return std::copy(fi.data(), fi.data() + fi.size(), out);
} }
template <typename Char, typename OutputIt>
OutputIt format_default(OutputIt out, double value) {
writer w(out);
w.write(value);
return w.out();
}
template <typename Char, typename OutputIt> template <typename Char, typename OutputIt>
OutputIt format_default(OutputIt out, Char value) { OutputIt format_default(OutputIt out, Char value) {
*out++ = value; *out++ = value;