Commit bd285a8b by Jonathan Wakely Committed by Jonathan Wakely

Extend std::function test for PR 68995

	* testsuite/20_util/function/68995.cc: Test reference_wrapper cases.

From-SVN: r232294
parent 9e530bcd
2016-01-12 Jonathan Wakely <jwakely@redhat.com>
* testsuite/20_util/function/68995.cc: Test reference_wrapper cases.
PR libstdc++/69005
PR libstdc++/69222
* include/std/functional (function::_Invoke): Remove, use result_of.
......
......@@ -25,3 +25,8 @@
std::tr1::shared_ptr<int> test() { return {}; }
std::function<std::tr1::shared_ptr<int>()> func = test;
std::function<std::tr1::shared_ptr<int>()> funcr = std::ref(test);
void test2(std::tr1::shared_ptr<int>) { }
std::function<void(std::tr1::shared_ptr<int>)> func2 = std::ref(test2);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment