r243298 - in /trunk/libstdc++-v3: ChangeLog inc...

ville@gcc.gnu.org ville@gcc.gnu.org
Tue Dec 6 12:47:00 GMT 2016


Author: ville
Date: Tue Dec  6 12:47:54 2016
New Revision: 243298

URL: https://gcc.gnu.org/viewcvs?rev=243298&root=gcc&view=rev
Log:
Constrain optional's __constexpr_addressof in its return type
and use a constexpr addressof for optional, if available.
* include/experimental/optional (__constexpr_addressof):
Constrain in the return type instead of in a template parameter.
(_Has_addressof_mem)
(_Has_addressof_free, _Has_addressof, __constexpr_addressof):
Guard with #ifndef __cpp_lib_addressof_constexpr.
(operator->()): Use std::__addressof if it's constexpr.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/experimental/optional



More information about the Libstdc++-cvs mailing list