gcc/libstdc++-v3/include
Jason Merrill 20316b9b2e Constrain std::variant constructor for class template argument deduction
2017-07-14  Jason Merrill  <jason@redhat.com>
	    Jonathan Wakely  <jwakely@redhat.com>

	* include/std/variant (variant::variant(_Tp&&)): Constrain to remove
	the constructor for empty variants from the candidate functions
	during class template argument deduction.
	* testsuite/20_util/variant/deduction.cc: New.

Co-Authored-By: Jonathan Wakely <jwakely@redhat.com>

From-SVN: r250213
2017-07-14 20:13:49 +01:00
..
backward Avoid deprecated warnings about std::auto_ptr in library headers 2017-04-21 14:08:51 +01:00
bits PR libstdc++/81381 support stateful allocators in basic_stringbuf 2017-07-10 18:59:02 +01:00
c Update copyright years. 2017-01-01 13:07:43 +01:00
c_compatibility Update copyright years. 2017-01-01 13:07:43 +01:00
c_global Define std::byte for C++17 (P0298R3) 2017-03-09 15:42:02 +00:00
c_std Update copyright years. 2017-01-01 13:07:43 +01:00
debug Revert revision 247926. 2017-05-12 21:19:39 +00:00
decimal Update copyright years. 2017-01-01 13:07:43 +01:00
experimental Prevent __uses_alloc from holding dangling references 2017-07-06 12:54:10 +01:00
ext Add C++17 deduction guide for std::basic_string (P0433R2, partial) 2017-06-07 13:35:08 +01:00
parallel Update copyright years. 2017-01-01 13:07:43 +01:00
precompiled Update copyright years. 2017-01-01 13:07:43 +01:00
profile Remove unused include from Profile Mode header 2017-01-13 17:20:23 +00:00
std Constrain std::variant constructor for class template argument deduction 2017-07-14 20:13:49 +01:00
tr1 PR libstdc++/68397 std::tr1::expint fails ... long double arguments. 2017-04-20 15:41:59 +00:00
tr2 Update copyright years. 2017-01-01 13:07:43 +01:00
Makefile.am Implement std::experimental::source_location (N4519) 2017-05-16 14:37:52 +01:00
Makefile.in Implement std::experimental::source_location (N4519) 2017-05-16 14:37:52 +01:00