Skip to content

Commit

Permalink
[libc++] Remove the ability to use braced-init for filesystem paths
Browse files Browse the repository at this point in the history
According to my reading of http://eel.is/c++draft/filesystems#fs.class.path,
the Standard doesn't actually mention that this should work. Since other
implementations don't allow it, allowing it in libc++ is just setting a
portability trap.

Supersedes https://reviews.llvm.org/D89865.

Differential Revision: https://reviews.llvm.org/D95975
  • Loading branch information
ldionne committed Feb 4, 2021
1 parent 3869309 commit 1700ea7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 38 deletions.
4 changes: 2 additions & 2 deletions libcxx/include/filesystem
Original file line number Diff line number Diff line change
Expand Up @@ -973,8 +973,8 @@ public:
return *this;
}

template <class = void>
_LIBCPP_INLINE_VISIBILITY path& operator=(string_type&& __s) noexcept {
_LIBCPP_INLINE_VISIBILITY
path& operator=(string_type&& __s) noexcept {
__pn_ = _VSTD::move(__s);
return *this;
}
Expand Down

This file was deleted.

0 comments on commit 1700ea7

Please sign in to comment.