diff options
author | Eric Fiselier <eric@efcs.ca> | 2017-03-06 21:02:06 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2017-03-06 21:02:06 +0000 |
commit | 7c7df6461c9746403d7618dd9d170bfbc108e265 (patch) | |
tree | dbbe9f5f799d155f8da287c5340b8da4745927de | |
parent | b537d38bb287ec8e2d4e70ed9a30ef9d3fa8a43b (diff) | |
download | external_libcxx-7c7df6461c9746403d7618dd9d170bfbc108e265.tar.gz external_libcxx-7c7df6461c9746403d7618dd9d170bfbc108e265.tar.bz2 external_libcxx-7c7df6461c9746403d7618dd9d170bfbc108e265.zip |
Implement LWG 2787 - [file_status.cons] is inconsistent
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@297071 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/experimental/filesystem | 6 | ||||
-rw-r--r-- | test/std/experimental/filesystem/class.file_status/file_status.cons.pass.cpp | 4 | ||||
-rw-r--r-- | www/cxx1z_status.html | 2 |
3 files changed, 7 insertions, 5 deletions
diff --git a/include/experimental/filesystem b/include/experimental/filesystem index 6ce446f7c..cf62ca27a 100644 --- a/include/experimental/filesystem +++ b/include/experimental/filesystem @@ -408,8 +408,10 @@ class _LIBCPP_TYPE_VIS file_status public: // constructors _LIBCPP_INLINE_VISIBILITY - explicit file_status(file_type __ft = file_type::none, - perms __prms = perms::unknown) _NOEXCEPT + file_status() _NOEXCEPT : file_status(file_type::none) {} + _LIBCPP_INLINE_VISIBILITY + explicit file_status(file_type __ft, + perms __prms = perms::unknown) _NOEXCEPT : __ft_(__ft), __prms_(__prms) {} diff --git a/test/std/experimental/filesystem/class.file_status/file_status.cons.pass.cpp b/test/std/experimental/filesystem/class.file_status/file_status.cons.pass.cpp index 585b0bb1d..a744e659f 100644 --- a/test/std/experimental/filesystem/class.file_status/file_status.cons.pass.cpp +++ b/test/std/experimental/filesystem/class.file_status/file_status.cons.pass.cpp @@ -30,8 +30,8 @@ int main() { { static_assert(std::is_nothrow_default_constructible<file_status>::value, "The default constructor must be noexcept"); - static_assert(!test_convertible<file_status>(), - "The default constructor must be explicit"); + static_assert(test_convertible<file_status>(), + "The default constructor must not be explicit"); const file_status f; assert(f.type() == file_type::none); assert(f.permissions() == perms::unknown); diff --git a/www/cxx1z_status.html b/www/cxx1z_status.html index d8923edea..ab796adca 100644 --- a/www/cxx1z_status.html +++ b/www/cxx1z_status.html @@ -439,7 +439,7 @@ <tr><td><a href="http://wg21.link/LWG2784">2784</a></td><td>Resolution to LWG 2484 is missing "otherwise, no effects" and is hard to parse</td><td>Kona</td><td></td></tr> <tr><td><a href="http://wg21.link/LWG2785">2785</a></td><td>quoted should work with basic_string_view</td><td>Kona</td><td></td></tr> <tr><td><a href="http://wg21.link/LWG2786">2786</a></td><td>Annex C should mention shared_ptr changes for array support</td><td>Kona</td><td></td></tr> - <tr><td><a href="http://wg21.link/LWG2787">2787</a></td><td>§[file_status.cons] doesn't match class definition</td><td>Kona</td><td></td></tr> + <tr><td><a href="http://wg21.link/LWG2787">2787</a></td><td>§[file_status.cons] doesn't match class definition</td><td>Kona</td><td>Complete</td></tr> <tr><td><a href="http://wg21.link/LWG2788">2788</a></td><td>basic_string range mutators unintentionally require a default constructible allocator</td><td>Kona</td><td></td></tr> <tr><td><a href="http://wg21.link/LWG2789">2789</a></td><td>Equivalence of contained objects</td><td>Kona</td><td></td></tr> <tr><td><a href="http://wg21.link/LWG2790">2790</a></td><td>Missing specification of istreambuf_iterator::operator-></td><td>Kona</td><td></td></tr> |