[libstdc++ PATCH] tr1::mem_fn and tr1::function, take 2

Douglas Gregor doug.gregor@gmail.com
Wed Feb 23 01:06:00 GMT 2005


This is version 2 of my tr1::mem_fn and tr1::function patch, originally posted 
here:

  http://gcc.gnu.org/ml/gcc-patches/2005-01/msg01872.html

Only trivial changes in this version:
  - Compiles with -fexceptions
  - Fix licensing a la Paolo's patch earlier

Tested 2 days ago on i686-pc-linux-gnu with no regressions; sanity check is 
running as I type.

Okay to commit?

 Doug
-------------- next part --------------
2005-02-22	Douglas Gregor <doug.gregor@gmail.com>

	* include/tr1/functional (function): New class template.
	(mem_fn): New function template.
	Implementations of TR1 function and mem_fn facilities.
	* include/tr1/functional_iterate.h: Implementations of TR1
	function and mem_fn facilities. 
	* testsuite/tr1/3_function_objects/polymorphic_wrapper.cc: New
	test of std::tr1::function.
	* testsuite/tr1/3_function_objects/mem_fn.cc: New test of
	std::tr1::mem_fn. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tr1_function_memfn_2.patch
Type: text/x-diff
Size: 68437 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20050223/a3528a74/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mem_fn.cc
Type: text/x-c++src
Size: 1977 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20050223/a3528a74/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: polymorphic_wrapper.cc
Type: text/x-c++src
Size: 15673 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20050223/a3528a74/attachment-0002.bin>


More information about the Libstdc++ mailing list