mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 11:24:19 +00:00
if boost >= 1.86 append newline to json logger
This commit is contained in:
@@ -114,6 +114,12 @@ void json_message(T& out, const boost::optional<const IfcUtil::IfcBaseClass*>& c
|
||||
property_tree.put(time_string, string_as<typename T::char_type>(get_time()));
|
||||
|
||||
boost::property_tree::write_json(out, property_tree, false);
|
||||
|
||||
// Append a newline after the JSON object if the Boost version is 1.86 or higher
|
||||
#if BOOST_VERSION >= 108600
|
||||
out << '\n';
|
||||
#endif
|
||||
|
||||
}
|
||||
} // namespace
|
||||
|
||||
|
||||
Reference in New Issue
Block a user