[libcxx-commits] [libcxx] [libc++] Use [[clang::no_specializations]] to diagnose invalid user specializations (PR #118167)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jan 16 07:35:53 PST 2025


================
@@ -18,7 +18,7 @@
 _LIBCPP_BEGIN_NAMESPACE_STD
 
 template <class _Tp>
-struct _LIBCPP_TEMPLATE_VIS add_cv {
+struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DIAGNOSE_SPECIALIZATIONS add_cv {
----------------
ldionne wrote:

```suggestion
struct _LIBCPP_TEMPLATE_VIS _LIBCPP_NO_SPECIALIZATIONS add_cv {
```

Applies in other places.

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


More information about the libcxx-commits mailing list