[Top][All Lists]
[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, 11 Sep 2006 16:12:23 +0000 |
CVSROOT: /cvsroot/toon
Module name: tag
Changes by: Gerhard Reitmayr <gerhard> 06/09/11 16:12:23
Modified files:
tag : fn.h
Log message:
moved binary_function specialization to std namespace where it belongs
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/tag/tag/fn.h?cvsroot=toon&r1=1.3&r2=1.4
Patches:
Index: fn.h
===================================================================
RCS file: /cvsroot/toon/tag/tag/fn.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- fn.h 4 Sep 2006 16:24:27 -0000 1.3
+++ fn.h 11 Sep 2006 16:12:23 -0000 1.4
@@ -4,20 +4,24 @@
#include <functional>
#include <iterator>
-namespace tag {
-
-///@defgroup functional additional functors for <functional>
-///This group provides additional functors to complement the <functional>
header of STL.
-///@ingroup stdpp
-//@{
-
+namespace std {
/// a missing type for passing in things by reference, should be in STL
+/// needs to be in std namespace, because it is a specialization of
+/// binary_function defined in <functional>
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;
};
+}
+
+namespace tag {
+
+///@defgroup functional additional functors for <functional>
+///This group provides additional functors to complement the <functional>
header of STL.
+///@ingroup stdpp
+//@{
template <typename A, typename m>
struct mem_data_ref_t : std::unary_function<A &, m &> {