gcc/libstdc++-v3/testsuite/experimental/optional
Ville Voutilainen 6ffe854859 Implement LWG 2451, optional<T> should 'forward' T's implicit conversions.
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.

From-SVN: r238049
2016-07-06 16:26:10 +03:00
..
assignment Update copyright years. 2016-01-04 15:30:50 +01:00
cons Implement LWG 2451, optional<T> should 'forward' T's implicit conversions. 2016-07-06 16:26:10 +03:00
constexpr Update copyright years. 2016-01-04 15:30:50 +01:00
observers Update copyright years. 2016-01-04 15:30:50 +01:00
relops Update copyright years. 2016-01-04 15:30:50 +01:00
swap Update copyright years. 2016-01-04 15:30:50 +01:00
in_place.cc Update copyright years. 2016-01-04 15:30:50 +01:00
make_optional.cc Update copyright years. 2016-01-04 15:30:50 +01:00
nullopt.cc Update copyright years. 2016-01-04 15:30:50 +01:00
requirements.cc Update copyright years. 2016-01-04 15:30:50 +01:00
typedefs.cc Update copyright years. 2016-01-04 15:30:50 +01:00