r250534 - in /branches/gcc-7-branch/libstdc++-v...

redi@gcc.gnu.org redi@gcc.gnu.org
Tue Jul 25 18:04:00 GMT 2017


Author: redi
Date: Tue Jul 25 18:04:38 2017
New Revision: 250534

URL: https://gcc.gnu.org/viewcvs?rev=250534&root=gcc&view=rev
Log:
Constrain std::variant constructor for class template argument deduction

Backport from mainline
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.

Added:
    branches/gcc-7-branch/libstdc++-v3/testsuite/20_util/variant/deduction.cc
Modified:
    branches/gcc-7-branch/libstdc++-v3/ChangeLog
    branches/gcc-7-branch/libstdc++-v3/include/std/variant



More information about the Libstdc++-cvs mailing list