aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-05-02 22:23:35 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2019-05-02 22:23:35 +0100
commitb752e2c926065820a0086c7a482edf199d79dfc2 (patch)
tree5c0d92802499dae6a89fc290cda5a62dca14b241 /gcc
parentefa9d8eef07e0abc9d073e004c95d2812d35f88a (diff)
downloadgcc-b752e2c926065820a0086c7a482edf199d79dfc2.zip
gcc-b752e2c926065820a0086c7a482edf199d79dfc2.tar.gz
gcc-b752e2c926065820a0086c7a482edf199d79dfc2.tar.bz2
Remove redundant __constexpr_addressof function
The std::__addressof function is always constexpr, even in C++14, so we can just use that. * include/experimental/bits/lfts_config.h: Improve doc markup. * include/experimental/optional: Improve docs. (_Has_addressof_mem, _Has_addressof_free, _Has_addressof) (__constexpr_addressof): Remove. (optional::operator->()): Use std::__addressof(). * include/std/optional (optional::operator->()): Adjust whitespace. * testsuite/experimental/optional/constexpr/observers/2.cc: Check that operator-> is still constexpr with overloaded operator&. Change to compile-only test. * testsuite/experimental/optional/constexpr/observers/3.cc: Change to compile-only test. From-SVN: r270826
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions