r270826 - in /trunk/libstdc++-v3: ChangeLog inc...
redi@gcc.gnu.org
redi@gcc.gnu.org
Thu May 2 21:23:00 GMT 2019
Author: redi
Date: Thu May 2 21:23:35 2019
New Revision: 270826
URL: https://gcc.gnu.org/viewcvs?rev=270826&root=gcc&view=rev
Log:
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.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/experimental/bits/lfts_config.h
trunk/libstdc++-v3/include/experimental/optional
trunk/libstdc++-v3/include/std/optional
trunk/libstdc++-v3/testsuite/experimental/optional/constexpr/observers/2.cc
trunk/libstdc++-v3/testsuite/experimental/optional/constexpr/observers/3.cc
More information about the Libstdc++-cvs
mailing list