[libcxx-commits] [libcxx] [libc++] Disallow specializing `common_reference` (PR #141465)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jun 4 00:53:27 PDT 2025
================
@@ -97,6 +97,9 @@ Potentially breaking changes
- The implementation of ``num_put::do_put`` has been replaced to improve the performance, which can lead to different
output when printing pointers.
+- User-defined specializations of ``std::common_reference`` are disallowed with the ``[[clang::no_specializations]]``
+ attribute. To customize the common reference type, ``std::basic_common_reference`` should be specialized instead.
----------------
philnik777 wrote:
```suggestion
- User-defined specializations of ``std::common_reference`` are diagnosed now. To customize the common reference type, ``std::basic_common_reference`` should be specialized instead.
```
I don't think it's relevant how we do that.
https://github.com/llvm/llvm-project/pull/141465
More information about the libcxx-commits
mailing list