Remove redundant __constexpr_addressof function
authorJonathan Wakely <jwakely@redhat.com>
Thu, 2 May 2019 21:23:35 +0000 (22:23 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 2 May 2019 21:23:35 +0000 (22:23 +0100)
commitb752e2c926065820a0086c7a482edf199d79dfc2
tree5c0d92802499dae6a89fc290cda5a62dca14b241
parentefa9d8eef07e0abc9d073e004c95d2812d35f88a
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
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/bits/lfts_config.h
libstdc++-v3/include/experimental/optional
libstdc++-v3/include/std/optional
libstdc++-v3/testsuite/experimental/optional/constexpr/observers/2.cc
libstdc++-v3/testsuite/experimental/optional/constexpr/observers/3.cc