Skip to content

Commit

Permalink
fix: add clocale header for std::localeconv()
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Nov 20, 2023
1 parent 66a6f18 commit fabecbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions lanelet2_io/src/OsmHandlerLoad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <lanelet2_core/geometry/Polygon.h>

#include <boost/geometry/algorithms/is_valid.hpp>
#include <clocale>
#include <fstream>
#include <iostream>
#include <pugixml.hpp>
Expand Down
7 changes: 5 additions & 2 deletions lanelet2_io/src/OsmHandlerWrite.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <clocale>
#include <pugixml.hpp>
#include <sstream>

Expand Down Expand Up @@ -296,7 +297,8 @@ void testAndPrintLocaleWarning(ErrorMessages& errors) {
}
} // namespace

void OsmWriter::write(const std::string& filename, const LaneletMap& laneletMap, ErrorMessages& errors, const io::Configuration& params) const {
void OsmWriter::write(const std::string& filename, const LaneletMap& laneletMap, ErrorMessages& errors,
const io::Configuration& params) const {
testAndPrintLocaleWarning(errors);
auto file = toOsmFile(laneletMap, errors, params);
auto doc = osm::write(*file, params);
Expand All @@ -306,7 +308,8 @@ void OsmWriter::write(const std::string& filename, const LaneletMap& laneletMap,
}
}

std::unique_ptr<osm::File> OsmWriter::toOsmFile(const LaneletMap& laneletMap, ErrorMessages& errors, const io::Configuration& params) const {
std::unique_ptr<osm::File> OsmWriter::toOsmFile(const LaneletMap& laneletMap, ErrorMessages& errors,
const io::Configuration& params) const {
return ToFileWriter::writeMap(laneletMap, projector(), errors, params);
}
} // namespace io_handlers
Expand Down

0 comments on commit fabecbd

Please sign in to comment.