if boost >= 1.86 append newline to json logger

This commit is contained in:
krande
2024-09-03 11:53:14 +02:00
committed by Thomas Krijnen
parent 0f87bd8206
commit 88b861737c
+6
View File
@@ -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