r238054 - in /branches/gcc-6-branch/libstdc++-v...
ville@gcc.gnu.org
ville@gcc.gnu.org
Wed Jul 6 13:58:00 GMT 2016
Author: ville
Date: Wed Jul 6 13:58:32 2016
New Revision: 238054
URL: https://gcc.gnu.org/viewcvs?rev=238054&root=gcc&view=rev
Log:
Implement LWG 2451, optional<T> should 'forward' T's
implicit conversions.
* include/experimental/optional (__is_optional_impl, __is_optional):
New.
(optional()): Make constexpr and default.
(optional(_Up&&), optional(const optional<_Up>&),
optional(optional<_Up>&& __t): New.
(operator=(_Up&&)): Constrain.
(operator=(const optional<_Up>&), operator=(optional<_Up>&&)): New.
* testsuite/experimental/optional/cons/value.cc:
Add tests for the functionality added by LWG 2451.
* testsuite/experimental/optional/cons/value_neg.cc: New.
Added:
branches/gcc-6-branch/libstdc++-v3/testsuite/experimental/optional/cons/value_neg.cc
Modified:
branches/gcc-6-branch/libstdc++-v3/ChangeLog
branches/gcc-6-branch/libstdc++-v3/include/experimental/optional
branches/gcc-6-branch/libstdc++-v3/testsuite/experimental/optional/cons/value.cc
More information about the Libstdc++-cvs
mailing list