PR libstdc++/71187 reimplement declval without add_rvalue_reference
authorJonathan Wakely <jwakely@redhat.com>
Mon, 18 Sep 2017 11:40:10 +0000 (12:40 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 18 Sep 2017 11:40:10 +0000 (12:40 +0100)
commitec26ff5a012428ed864b679c7c171e2e7d917f76
tree1ace52416e236fdd4f9678af0adb7f6003930acf
parentba2c915e3d80d1a2fc231935f8bdcd1c7930a5f8
PR libstdc++/71187 reimplement declval without add_rvalue_reference

PR libstdc++/71187
* include/std/type_traits (__declval): New function to deduce return
type of declval.
(__declval_protector::_delegate): Remove.
(declval): Use __declval instead of add_rvalue_reference and
__declval_protector::__delegate.
* testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error
lineno.
* testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
Likewise.
* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
Likewise.

From-SVN: r252922
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/type_traits
libstdc++-v3/testsuite/20_util/declval/requirements/1_neg.cc
libstdc++-v3/testsuite/20_util/make_signed/requirements/typedefs_neg.cc
libstdc++-v3/testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc