This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++17 status.
Section: 31.12 [filesystems] Status: C++17 Submitter: Beman Dawes Opened: 2016-04-15 Last modified: 2017-07-30
Priority: 2
View all other issues in [filesystems].
View all issues with C++17 status.
Discussion:
The IS project editors have requested that filesystem Effects elements specified purely as C++ code include the phrase "Equivalent to" if this is the intent. They do not consider this change to be editorial.
[2016-08 Chicago]
Wed AM: Move to Tentatively Ready
Proposed resolution:
path& replace_filename(const path& replacement);Effects: Equivalent to:
remove_filename(); operator/=(replacement);
void swap(path& lhs, path& rhs) noexcept;Effects: Equivalent to:
lhs.swap(rhs)
template <class charT, class traits> basic_ostream<charT, traits>& operator<<(basic_ostream<charT, traits>& os, const path& p);Effects: Equivalent to:
os << quoted(p.string<charT, traits>())
.
template <class charT, class traits> basic_istream<charT, traits>& operator>>(basic_istream<charT, traits>& is, path& p);Effects: Equivalent to:
basic_string<charT, traits> tmp; is >> quoted(tmp); p = tmp;
void copy(const path& from, const path& to); void copy(const path& from, const path& to, error_code& ec) noexcept;Effects: Equivalent to:
copy(from, to, copy_options::none)
orcopy(from, to, copy_options::none, ec)
, respectively.
void copy_symlink(const path& existing_symlink, const path& new_symlink); void copy_symlink(const path& existing_symlink, const path& new_symlink, error_code& ec) noexcept;Effects: Equivalent to:
function(read_symlink(existing_symlink), new_symlink)
orfunction(read_symlink(existing_symlink, ec), new_symlink, ec)
, respectively, wherefunction
iscreate_symlink
orcreate_directory_symlink
, as appropriate.