[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
Wed Jan 8 08:07:44 PST 2025


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

This looks like a leftover from an earlier state. Also this is in the C++03 headers.

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


More information about the libcxx-commits mailing list