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