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.
file: libstdc++-v3/README New users may wish to point their web browsers to the file index.html in the 'doc/html' subdirectory. It contains brief building instructions and notes on how to configure the library in interesting ways.