title: How to build a full path string (safely) from separate strings?
body: <p>Does C++ have any equivalent to python's function <code>os.path.join</code>? Basically, I'm looking for something that combines two (or more) parts of a file path so that you don't have to worry about making sure the two parts fit together perfectly. If it's in Qt, that would be cool too.</p>
  
  <p>Basically I spent an hour debugging some code and at least part of it was because <code>root + filename</code> had to be <code>root/ + filename</code>, and I'm looking to avoid that in the future.</p>