[libcxx-commits] [libcxx] [libc++] Make `constexpr std::variant`. Implement P2231R1 (PR #83335)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Mar 1 09:52:57 PST 2024


================
@@ -834,21 +837,24 @@ class _LIBCPP_TEMPLATE_VIS __move_constructor;
       using __base_type::__base_type;                                                                                  \
       using __base_type::operator=;                                                                                    \
                                                                                                                        \
-      __move_constructor(const __move_constructor&)            = default;                                              \
-      move_constructor ~__move_constructor()                   = default;                                              \
----------------
ldionne wrote:

Maybe adding `move_constructor;` would help clang-format put those on different lines? That would really increase readability. Otherwise perhaps even `/*                                   */` would help.

https://github.com/llvm/llvm-project/pull/83335


More information about the libcxx-commits mailing list