[libcxx-commits] [libcxx] [libcxx] LWG4172 fix self-move-assignment in {unique|shared}_lock (PR #129542)
Hristo Hristov via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Dec 6 13:57:57 PST 2025
================
@@ -15,13 +15,16 @@
#include <__memory/addressof.h>
#include <__mutex/tag_types.h>
#include <__system_error/throw_system_error.h>
+#include <__utility/move.h>
#include <__utility/swap.h>
#include <cerrno>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
# pragma GCC system_header
#endif
+_LIBCPP_PUSH_MACROS
+#include <__undef_macros>
_LIBCPP_BEGIN_NAMESPACE_STD
----------------
H-G-Hristov wrote:
```suggestion
_LIBCPP_PUSH_MACROS
#include <__undef_macros>
_LIBCPP_BEGIN_NAMESPACE_STD
```
Please insert an empty line here.
https://github.com/llvm/llvm-project/pull/129542
More information about the libcxx-commits
mailing list