[libcxx-commits] [libcxx] [libc++] Use __is_nothrow_destructible (PR #95766)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jun 20 08:07:36 PDT 2024


================
@@ -92,11 +98,13 @@ int main(int, char**)
     test_is_nothrow_destructible<PublicDestructor>();
     test_is_nothrow_destructible<VirtualPublicDestructor>();
     test_is_nothrow_destructible<PurePublicDestructor>();
+#else
+    test_is_nothrow_destructible<ExplicitlyNoThrowDestructor>();
+#endif
----------------
ldionne wrote:

```suggestion
#endif
    test_is_nothrow_destructible<ExplicitlyNoThrowDestructor>();
```

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


More information about the libcxx-commits mailing list