mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Rewrite svg array_to_string()
This commit is contained in:
@@ -1336,9 +1336,9 @@ namespace {
|
||||
template <typename T>
|
||||
std::string array_to_string(const T& v) {
|
||||
return "[" + std::accumulate(
|
||||
++v.begin(), v.end(),
|
||||
v.begin() + 1, v.end(),
|
||||
array_to_string(v.front()),
|
||||
[](const std::string& accum, auto const & item) {
|
||||
[](const std::string& accum, decltype(*v.cbegin())& item) {
|
||||
return accum + "," + array_to_string(item);
|
||||
}) + "]";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user