Merge pull request #169 from ohdarling/fix_force_inline

fix: serializer has wrong constructor params order when format root object
This commit is contained in:
Toru Niina
2021-09-24 00:29:14 +09:00
committed by GitHub

View File

@@ -833,7 +833,7 @@ format(const basic_value<C, M, V>& v, std::size_t w = 80u,
oss << v.comments(); oss << v.comments();
oss << '\n'; // to split the file comment from the first element oss << '\n'; // to split the file comment from the first element
} }
const auto serialized = visit(serializer<value_type>(w, fprec, no_comment, false), v); const auto serialized = visit(serializer<value_type>(w, fprec, false, no_comment), v);
oss << serialized; oss << serialized;
return oss.str(); return oss.str();
} }