r243350 - in /branches/gcc-5-branch/libstdc++-v...
ville@gcc.gnu.org
ville@gcc.gnu.org
Wed Dec 7 15:23:00 GMT 2016
Author: ville
Date: Wed Dec 7 15:22:34 2016
New Revision: 243350
URL: https://gcc.gnu.org/viewcvs?rev=243350&root=gcc&view=rev
Log:
Backport from mainline
2016-12-06 Ville Voutilainen <ville.voutilainen@gmail.com>
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:
branches/gcc-5-branch/libstdc++-v3/ChangeLog
branches/gcc-5-branch/libstdc++-v3/include/experimental/optional
More information about the Gcc-cvs
mailing list