mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
This resolves LWG3454, "pointer_traits::pointer_to should be constexpr", accepted in Kona 2025. The change is applied since C++20, i.e. standard in which pointer_to was made constexpr for T* specialization. libstdc++-v3/ChangeLog: * include/bits/ptr_traits.h (__ptr_traits_ptr_to::pointer_to): Define as constexpr since C++20. * testsuite/20_util/pointer_traits/pointer_to_constexpr.cc: New test for custom pointer-like type.