[libstdc++ patch] TR1 result_of implementation
Douglas Gregor
doug.gregor@gmail.com
Mon Feb 28 02:37:00 GMT 2005
This patch adds support for result_of (section 3.4 of TR1). This is the
library-only solution that does not make sure of typeof. If we get a
reference-preserving typeof (or can fake it), we should consider replacing
this implementation with one that uses the reference-preserving typeof
directly.
reference_wrapper's result_type and operator() should be easy to implement
now.
All function object tests pass on i686-pc-linux-gnu; full test suite is
running right. Okay to commit if everything passes?
Doug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: result_of.patch
Type: text/x-diff
Size: 9070 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20050228/c9fdcce6/attachment.bin>
-------------- next part --------------
2005-02-27 Douglas Gregor <doug.gregor@gmail.com>
* include/tr1/function (result_of): New class template.
* include/tr1/functional/iterator.h: Implementation of TR1
result_of.
* testsuite/tr1/3_function_objects/result_of.cc: New test
of std::tr1::result_of.
More information about the Libstdc++
mailing list