fs::make_path should check for forward slashes, add if missing

This commit is contained in:
Antonio SJ Musumeci 2014-05-27 07:17:32 -04:00
parent 16fe0cf90c
commit bbc4b594fe

View File

@ -138,7 +138,10 @@ namespace fs
make_path(const string base,
const string suffix)
{
if(*base.rbegin() == '/' ||
*suffix.rbegin() == '/')
return base + suffix;
return base + '/' + suffix;
}
bool