gcc/libstdc++-v3/testsuite/20_util
Jonathan Wakely be7f782278 re PR libstdc++/48521 ([C++0x] std::result_of doesn't work with pointer to member)
2011-04-19  Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR libstdc++/48521
	* include/std/type_traits (result_of): Handle pointer to member.
	* include/std/functional (__invoke): Likewise.
	(_Function_to_function_pointer): Remove.
	(_Reference_wrapper_base): Provide nested types independent of
	unary_function and binary_function.
	(reference_wrapper::operator()): DR 2017.
	(ref(const A&&), cref(const A&&): Define as deleted.
	* include/std/future (async): Simplify SFINAE and use result_of to
	support pointer to member.
	* testsuite/20_util/reference_wrapper/invoke.cc: Test pointer to 
	member.
	* testsuite/20_util/reference_wrapper/24803.cc: Likewise.
	* testsuite/20_util/reference_wrapper/typedefs.cc: Test for types
	instead of derivation from unary_function and binary_function.
	* testsuite/20_util/declval/requirements/1_neg.cc: Adjust.
	* testsuite/20_util/reference_wrapper/invoke-2.cc: New.
	* testsuite/20_util/reference_wrapper/ref_neg.c: New.
	* testsuite/20_util/reference_wrapper/typedefs-3.c: New.

From-SVN: r172709
2011-04-19 14:26:08 +01:00
..
add_lvalue_reference Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
add_rvalue_reference Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
addressof [multiple changes] 2010-05-20 22:35:49 +00:00
aligned_storage Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
allocator Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
auto_ptr PR libstdc++/36104 part four 2011-01-30 22:39:36 +00:00
bad_function_call Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
bind re PR libstdc++/45893 ([C++0x] [DR 817] Finish updating std::bind to rvalue refs) 2010-10-08 01:44:12 +01:00
common_type/requirements type_traits (declval): Add, per DR 1255. 2009-11-13 02:25:12 +00:00
conditional/requirements Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
decay/requirements Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
declval/requirements re PR libstdc++/48521 ([C++0x] std::result_of doesn't work with pointer to member) 2011-04-19 14:26:08 +01:00
default_delete re PR libstdc++/48631 ([C++0x] default_delete<T[]> accepts pointer conversions in function call operator) 2011-04-16 02:02:29 +00:00
duration PR libstdc++/36104 part four 2011-01-30 22:39:36 +00:00
duration_cast syntax_option_type.cc: Avoid -Wall warnings. 2010-11-02 18:25:55 +00:00
enable_if/requirements Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
enable_shared_from_this re PR libstdc++/46869 (FAIL: 20_util/enable_shared_from_this/cons/constexpr.cc scan-assembler-not _ZNSt23enable_shared_from_thisIiEC2Ev) 2010-12-19 16:20:25 +00:00
forward PR libstdc++/36104 part four 2011-01-30 22:39:36 +00:00
function re PR libstdc++/48541 (std::function(std::_Function_base) should use std::addressof) 2011-04-10 17:35:58 +01:00
function_objects Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
has_nothrow_copy_assign type_traits (has_nothrow_assign): Rename to has_nothrow_copy_assign. 2010-06-08 17:50:54 +00:00
has_trivial_copy_assign type_traits (has_nothrow_assign): Rename to has_nothrow_copy_assign. 2010-06-08 17:50:54 +00:00
has_trivial_copy_constructor Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
has_trivial_default_constructor Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
hash re PR testsuite/48675 (20_util/hash/chi2_quality.cc timeout) 2011-04-19 03:59:16 +00:00
headers 47628.cc: Do not test in C++0x mode. 2011-02-10 17:43:51 +00:00
is_compound [multiple changes] 2011-04-13 22:52:45 +00:00
is_constructible [multiple changes] 2011-04-13 22:52:45 +00:00
is_convertible [multiple changes] 2011-04-13 22:52:45 +00:00
is_copy_constructible type_traits (is_nothrow_default_constructible, [...]): Add. 2011-04-19 00:10:53 +00:00
is_default_constructible type_traits (is_nothrow_default_constructible, [...]): Add. 2011-04-19 00:10:53 +00:00
is_destructible [multiple changes] 2011-04-13 22:52:45 +00:00
is_explicitly_convertible [multiple changes] 2009-12-30 23:22:58 +00:00
is_function [multiple changes] 2011-04-13 22:52:45 +00:00
is_fundamental [multiple changes] 2011-04-13 22:52:45 +00:00
is_integral Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
is_literal_type user.cfg.in: Remove tr1_impl headers. 2010-11-05 22:30:54 +00:00
is_lvalue_reference Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
is_member_function_pointer [multiple changes] 2011-04-13 22:52:45 +00:00
is_member_object_pointer [multiple changes] 2011-04-13 22:52:45 +00:00
is_member_pointer [multiple changes] 2011-04-13 22:52:45 +00:00
is_move_constructible type_traits (is_nothrow_default_constructible, [...]): Add. 2011-04-19 00:10:53 +00:00
is_nothrow_constructible type_traits (is_nothrow_default_constructible, [...]): Add. 2011-04-19 00:10:53 +00:00
is_nothrow_copy_constructible type_traits (is_nothrow_default_constructible, [...]): Add. 2011-04-19 00:10:53 +00:00
is_nothrow_default_constructible type_traits (is_nothrow_default_constructible, [...]): Add. 2011-04-19 00:10:53 +00:00
is_nothrow_move_constructible type_traits (is_nothrow_default_constructible, [...]): Add. 2011-04-19 00:10:53 +00:00
is_object [multiple changes] 2011-04-13 22:52:45 +00:00
is_pod testsuite_tr1.h (NType, [...]): Add. 2010-03-23 15:20:29 +00:00
is_reference Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
is_rvalue_reference Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
is_scalar re PR libstdc++/46718 ([c++0x] nullptr_t must be scalar) 2010-11-30 12:52:38 +00:00
is_signed Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
is_standard_layout testsuite_tr1.h (NType, [...]): Add. 2010-03-23 15:20:29 +00:00
is_trivial testsuite_tr1.h (NType, [...]): Add. 2010-03-23 15:20:29 +00:00
is_unsigned Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
make_signed/requirements type_traits (is_nothrow_default_constructible, [...]): Add. 2011-04-19 00:10:53 +00:00
make_unsigned/requirements type_traits (is_nothrow_default_constructible, [...]): Add. 2011-04-19 00:10:53 +00:00
monotonic_clock chrono: Constexpr markup for is_monotonic. 2010-11-23 23:47:44 +00:00
move Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
owner_less shared_ptr.h: Do not swap rvalues. 2009-06-23 23:33:17 +01:00
pair tuple: Mark more constructors constexpr. 2010-11-24 16:33:14 +00:00
ratio [multiple changes] 2011-04-13 22:52:45 +00:00
raw_storage_iterator/requirements Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
reference_wrapper re PR libstdc++/48521 ([C++0x] std::result_of doesn't work with pointer to member) 2011-04-19 14:26:08 +01:00
remove_reference Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
shared_ptr shared_ptr.h (operator>, [...]): Add, per DR 1401. 2011-03-22 15:15:03 +00:00
specialized_algorithms testsuite_rvalref.h: Remove obsolete macro using _GLIBCXX_TESTSUITE_ALLOW_RVALREF_ALIASING. 2009-09-01 10:19:11 +00:00
system_clock chrono: Constexpr markup for is_monotonic. 2010-11-23 23:47:44 +00:00
time_point user.cfg.in: Add typeindex. 2010-11-06 03:35:46 +00:00
time_point_cast libstdc++: N3126 draft support. 2010-11-01 22:35:28 -04:00
tuple re PR libstdc++/48476 ([C++0x] conversion between std::tuple which have reference member is rejected) 2011-04-12 10:31:33 +00:00
typeindex typeindex: New. 2010-09-22 12:04:08 +00:00
unique_ptr PR libstdc++/48635 (again) 2011-04-17 21:46:11 +00:00
uses_allocator allocator.h (allocator_arg_t, [...]): Add. 2010-09-27 17:27:43 +00:00
weak_ptr re PR libstdc++/48631 ([C++0x] default_delete<T[]> accepts pointer conversions in function call operator) 2011-04-16 02:02:29 +00:00
rel_ops.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
temporary_buffer.cc testsuite_iterators.h: Guard move.h includes. 2010-12-16 22:02:38 +00:00