mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
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:
@@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user