summaryrefslogtreecommitdiffstats
path: root/libcxx/include/experimental/filesystem
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-10-15 21:29:44 +0000
committerEric Fiselier <eric@efcs.ca>2016-10-15 21:29:44 +0000
commitbbcfec7edd010aeb2f86780b7491a400dbe0f5d9 (patch)
tree388ad1d17f8a6437a2cf7dc65421549f2c2fab7d /libcxx/include/experimental/filesystem
parent26ef119dcb1b0e37e66949a211ef612221a0306c (diff)
downloadbcm5719-llvm-bbcfec7edd010aeb2f86780b7491a400dbe0f5d9.tar.gz
bcm5719-llvm-bbcfec7edd010aeb2f86780b7491a400dbe0f5d9.zip
Implement LWG2664 and update its status
llvm-svn: 284310
Diffstat (limited to 'libcxx/include/experimental/filesystem')
-rw-r--r--libcxx/include/experimental/filesystem2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/include/experimental/filesystem b/libcxx/include/experimental/filesystem
index 10590a8c067..45de0d19cb5 100644
--- a/libcxx/include/experimental/filesystem
+++ b/libcxx/include/experimental/filesystem
@@ -759,6 +759,8 @@ private:
public:
// appends
path& operator/=(const path& __p) {
+ _LIBCPP_ASSERT(!__p.has_root_name(),
+ "cannot append to a path with a root name");
__append_sep_if_needed(__p.empty() ? char{} : __p.__pn_[0]);
__pn_ += __p.native();
return *this;
OpenPOWER on IntegriCloud