[libcxx-commits] [libcxx] [libc++] Implement LWG3940 (std::expected<void, E>::value() also needs E to be copy constructible) (PR #71819)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Nov 9 08:12:21 PST 2023


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 8131eeb9e1ee9d61a84c053f6449044afbe40266 3e4b73d2aeac411a83dda5cd63eb0572499db467 -- libcxx/test/std/utilities/expected/expected.void/observers/value.lwg3940.compile.fail.cpp libcxx/test/std/utilities/expected/expected.void/observers/value.pass.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libcxx/test/std/utilities/expected/expected.void/observers/value.lwg3940.compile.fail.cpp b/libcxx/test/std/utilities/expected/expected.void/observers/value.lwg3940.compile.fail.cpp
index 37c06e629e94..0f43a45b4eaa 100644
--- a/libcxx/test/std/utilities/expected/expected.void/observers/value.lwg3940.compile.fail.cpp
+++ b/libcxx/test/std/utilities/expected/expected.void/observers/value.lwg3940.compile.fail.cpp
@@ -22,6 +22,4 @@ void test() {
   std::move(e).value();
 }
 
-int main(int, char**) {
-  test();
-}
+int main(int, char**) { test(); }

``````````

</details>


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


More information about the libcxx-commits mailing list