mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-06-04 11:13:58 +08:00
refs #90, additional compile issue fixes
This commit is contained in:
parent
a7abc2ad4a
commit
4944a87e18
@ -3008,9 +3008,9 @@ GHC_INLINE path::iterator::iterator() {}
|
|||||||
GHC_INLINE path::iterator::iterator(const path& p, const impl_string_type::const_iterator& pos)
|
GHC_INLINE path::iterator::iterator(const path& p, const impl_string_type::const_iterator& pos)
|
||||||
: _first(p._path.begin())
|
: _first(p._path.begin())
|
||||||
, _last(p._path.end())
|
, _last(p._path.end())
|
||||||
, _iter(pos)
|
|
||||||
, _prefix(_first + p._prefixLength)
|
, _prefix(_first + p._prefixLength)
|
||||||
, _root(p.has_root_directory() ? _first + p._prefixLength + p.root_name_length() : _last)
|
, _root(p.has_root_directory() ? _first + static_cast<difference_type>(p._prefixLength + p.root_name_length()) : _last)
|
||||||
|
, _iter(pos)
|
||||||
{
|
{
|
||||||
updateCurrent();
|
updateCurrent();
|
||||||
}
|
}
|
||||||
|
@ -2798,7 +2798,7 @@ TEST_CASE("Windows: path namespace handling", "[filesystem][path][fs.path.win.na
|
|||||||
{R"(\??\C:\Windows\notepad.exe)", R"(\??\C:\Windows\notepad.exe)", "\\??", "\\??\\", "/??,/,C:,Windows,notepad.exe"},
|
{R"(\??\C:\Windows\notepad.exe)", R"(\??\C:\Windows\notepad.exe)", "\\??", "\\??\\", "/??,/,C:,Windows,notepad.exe"},
|
||||||
#else
|
#else
|
||||||
{R"(\\?\C:\Windows\notepad.exe)", R"(\\?\C:\Windows\notepad.exe)", "C:", "C:\\", "//?/,C:,/,Windows,notepad.exe"},
|
{R"(\\?\C:\Windows\notepad.exe)", R"(\\?\C:\Windows\notepad.exe)", "C:", "C:\\", "//?/,C:,/,Windows,notepad.exe"},
|
||||||
{R"(\??\C:\Windows\notepad.exe)", R"(\??\C:\Windows\notepad.exe)", "C:", "C:\\", "/??/,C:,/,Windows,notepad.exe"},
|
{R"(\??\C:\Windows\notepad.exe)", R"(\??\C:\Windows\notepad.exe)", "C:", "C:\\", "/?\?/,C:,/,Windows,notepad.exe"},
|
||||||
#endif
|
#endif
|
||||||
{R"(\\.\C:\Windows\notepad.exe)", R"(\\.\C:\Windows\notepad.exe)", "\\\\.", "\\\\.\\", "//.,/,C:,Windows,notepad.exe"},
|
{R"(\\.\C:\Windows\notepad.exe)", R"(\\.\C:\Windows\notepad.exe)", "\\\\.", "\\\\.\\", "//.,/,C:,Windows,notepad.exe"},
|
||||||
{R"(\\?\HarddiskVolume1\Windows\notepad.exe)", R"(\\?\HarddiskVolume1\Windows\notepad.exe)", "\\\\?", "\\\\?\\", "//?,/,HarddiskVolume1,Windows,notepad.exe"},
|
{R"(\\?\HarddiskVolume1\Windows\notepad.exe)", R"(\\?\HarddiskVolume1\Windows\notepad.exe)", "\\\\?", "\\\\?\\", "//?,/,HarddiskVolume1,Windows,notepad.exe"},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user