LWG 2993 reference_wrapper<T> conversion from T&&
authorJonathan Wakely <jwakely@redhat.com>
Fri, 15 Jun 2018 14:19:47 +0000 (15:19 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 15 Jun 2018 14:19:47 +0000 (15:19 +0100)
commit7f93abd805763ef3827fce9194b0adcd2419a45c
treefb00df793c897b007fc7ff9c3344d546a10c0f2b
parentd1ac60d5759dc63e4f03311d6c85cda8c9d12133
LWG 2993 reference_wrapper<T> conversion from T&&

* doc/xml/manual/intro.xml: Document LWG 2993 change.
* include/bits/refwrap.h (reference_wrapper(_Tp&)): Remove.
(reference_wrapper(_Tp&&)): Remove.
(reference_wrapper<_Up>(_Up&&)): Define new constructor as constrained
template.
(reference_wrapper): Add deduction guide.
* testsuite/20_util/reference_wrapper/deduction.cc: New.
* testsuite/20_util/reference_wrapper/lwg2993.cc: New.

From-SVN: r261632
libstdc++-v3/ChangeLog
libstdc++-v3/doc/xml/manual/intro.xml
libstdc++-v3/include/bits/refwrap.h
libstdc++-v3/testsuite/20_util/reference_wrapper/deduction.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/reference_wrapper/lwg2993.cc [new file with mode: 0644]