Constexpr in std::pointer_traits (P1006R1)
authorJonathan Wakely <jwakely@redhat.com>
Wed, 6 Mar 2019 11:32:42 +0000 (11:32 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 6 Mar 2019 11:32:42 +0000 (11:32 +0000)
commitd80f04d61e11a103e2e463a1a90a3d780b0fd99b
tree2fcbce7aac6a4d0e5be70ff048b5966be5e0b7ac
parent9f54ba8f7dfb00d834893a746db141a409778ad9
Constexpr in std::pointer_traits (P1006R1)

* include/bits/ptr_traits.h [C++20] (pointer_traits<T*>::pointer_to):
Add constexpr.
* testsuite/20_util/pointer_traits/pointer_to_constexpr.cc: New test.

From-SVN: r269418
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/ptr_traits.h
libstdc++-v3/testsuite/20_util/pointer_traits/pointer_to_constexpr.cc [new file with mode: 0644]