diff --git a/libcxx/include/filesystem b/libcxx/include/filesystem --- a/libcxx/include/filesystem +++ b/libcxx/include/filesystem @@ -973,8 +973,8 @@ return *this; } - template - _LIBCPP_INLINE_VISIBILITY path& operator=(string_type&& __s) noexcept { + _LIBCPP_INLINE_VISIBILITY + path& operator=(string_type&& __s) noexcept { __pn_ = _VSTD::move(__s); return *this; } diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/braced_init.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/braced_init.pass.cpp deleted file mode 100644 --- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/braced_init.pass.cpp +++ /dev/null @@ -1,36 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -// UNSUPPORTED: c++03 - -// - -// class path - -// path& operator=(path const&); - -#include "filesystem_include.h" -#include -#include - -#include "test_macros.h" -#include "count_new.h" - - -int main(int, char**) { - using namespace fs; - path p("abc"); - p = {}; -#ifdef _WIN32 - assert(p.native() == L""); -#else - assert(p.native() == ""); -#endif - - return 0; -}