Use boost functions for string manipulation instead of std ones in order to silence char-int conversion warnings on VS 2017.

This commit is contained in:
Stinkfist0
2017-04-03 23:02:37 +03:00
committed by Thomas Krijnen
parent e4a7d2a149
commit 2edf867818
2 changed files with 8 additions and 5 deletions
+3 -3
View File
@@ -101,8 +101,8 @@ namespace IfcGeom {
oss << "product-" << IfcParse::IfcGlobalId(guid).formatted();
if (!_context.empty()) {
std::string ctx = _context;
std::transform(ctx.begin(), ctx.end(), ctx.begin(), ::tolower);
std::replace(ctx.begin(), ctx.end(), ' ', '-');
boost::to_lower(ctx);
boost::replace_all(ctx, " ", "-");
oss << "-" << ctx;
}
_unique_id = oss.str();
@@ -167,4 +167,4 @@ namespace IfcGeom {
};
}
#endif
#endif