diff --git a/g2o/core/optimizable_graph.cpp b/g2o/core/optimizable_graph.cpp index 7fbbe30d1..7fc350281 100644 --- a/g2o/core/optimizable_graph.cpp +++ b/g2o/core/optimizable_graph.cpp @@ -473,14 +473,14 @@ bool OptimizableGraph::load(istream& is) { } if (!vertsOkay) { G2O_ERROR("Unable to find vertices for edge {} at line {} IDs: {}", - token, lineNumber, fmt::join(ids, " ")); + token, lineNumber, strJoin(ids.begin(), ids.end(), " ")); delete e; e = nullptr; } else { bool r = e->read(currentLine); if (!r || !addEdge(e)) { G2O_ERROR("Unable to add edge {} at line {} IDs: {}", token, - lineNumber, fmt::join(ids, " ")); + lineNumber, strJoin(ids.begin(), ids.end(), " ")); delete e; e = nullptr; }