Ticket #10205: 10205.parent_path.patch

File 10205.parent_path.patch, 356 bytes (added by kevinday.home@…, 8 years ago)
  • libs/filesystem/src/path.cpp

    a b namespace filesystem  
    349349   size_type end_pos(m_parent_path_end());
    350350   return end_pos == string_type::npos
    351351     ? path()
    352      : path(m_pathname.c_str(), m_pathname.c_str() + end_pos);
     352     : path(m_pathname.substr(0,end_pos));
    353353  }
    354354
    355355  path path::filename() const