toon-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Toon-members] tag/tag fn.h


From: Gerhard Reitmayr
Subject: [Toon-members] tag/tag fn.h
Date: Mon, 04 Sep 2006 16:24:27 +0000

CVSROOT:        /cvsroot/toon
Module name:    tag
Changes by:     Gerhard Reitmayr <gerhard>      06/09/04 16:24:27

Modified files:
        tag            : fn.h 

Log message:
        added a binary_function traits class for functional header

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/tag/tag/fn.h?cvsroot=toon&r1=1.2&r2=1.3

Patches:
Index: fn.h
===================================================================
RCS file: /cvsroot/toon/tag/tag/fn.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- fn.h        19 Jul 2006 16:20:48 -0000      1.2
+++ fn.h        4 Sep 2006 16:24:27 -0000       1.3
@@ -11,6 +11,14 @@
 ///@ingroup stdpp
 //@{
 
+/// a missing type for passing in things by reference, should be in STL
+template <class Arg1, class Arg2, class Result>
+struct binary_function<Arg1, Arg2&, Result> {
+    typedef Arg1 first_argument_type;
+    typedef Arg2 second_argument_type;
+    typedef Result result_type;
+};
+
 template <typename A, typename m>
 struct mem_data_ref_t : std::unary_function<A &, m &> {
     m A::*data;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]