Add std::to_address for C++2a (P0653R2)
authorGlen Joseph Fernandes <glenjofe@gmail.com>
Tue, 28 Nov 2017 14:22:32 +0000 (14:22 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 28 Nov 2017 14:22:32 +0000 (14:22 +0000)
commit61cd19e6be197dbafa410e894f002a185256db30
treee4ccbf8e57357f16168288813716bab18333a5b1
parent5a198ba9d35f95a0bc407934ac8de58c6875fd9b
Add std::to_address for C++2a (P0653R2)

2017-11-28  Glen Joseph Fernandes  <glenjofe@gmail.com>

* include/bits/ptr_traits.h (to_address): Implement to_address.
* testsuite/20_util/to_address/1.cc: New test.

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