]> git.ipfire.org Git - thirdparty/gcc.git/commit
Constexpr in std::pointer_traits (P1006R1)
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Mar 2019 11:32:42 +0000 (11:32 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Mar 2019 11:32:42 +0000 (11:32 +0000)
commit13825fb24ecec66175915595cdc11d86ff46d48f
tree2fcbce7aac6a4d0e5be70ff048b5966be5e0b7ac
parentf7de65b6acc76ebd91768f372b549208cc6c3b32
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@269418 138bc75d-0d04-0410-961f-82ee72b054a4
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]