title: Boost error conversion from ‘boost::filesystem3::path’ to non-scalar type ‘std::string
body: <p>I have code:</p>
  
  <pre><code>std::string firstFile = boost::filesystem::path(first-&gt;name()).leaf();
  </code></pre>
  
  <p>But get error:</p>
  
  <pre><code>error conversion from ‘boost::filesystem3::path’ to non-scalar type ‘std::string
  </code></pre>
  
  <p>How can i fix it?</p>
  
  <p>Thank you.</p>