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::value, "The default constructor must be noexcept"); - static_assert(!test_convertible(), - "The default constructor must be explicit"); + static_assert(test_convertible(), + "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 @@ 2784Resolution to LWG 2484 is missing "otherwise, no effects" and is hard to parseKona 2785quoted should work with basic_string_viewKona 2786Annex C should mention shared_ptr changes for array supportKona - 2787§[file_status.cons] doesn't match class definitionKona + 2787§[file_status.cons] doesn't match class definitionKonaComplete 2788basic_string range mutators unintentionally require a default constructible allocatorKona 2789Equivalence of contained objectsKona 2790Missing specification of istreambuf_iterator::operator->Kona