title: Convert a string to std filesystem path
body: <p>A file path is passed as a string. How do I convert this string to a <a href="http://en.cppreference.com/w/cpp/filesystem/path" rel="noreferrer">std::filesystem::path</a>? Example:</p>
  
  <pre><code>#include &lt;filesystem&gt;
  
  std::string inputPath = "a/custom/path.ext";
  const std::filesystem::path path = inputPath; // Is this assignment safe?
  </code></pre>