From f3f879555ab69aa7271d323661e6e8aa0e17d5b6 Mon Sep 17 00:00:00 2001 From: Fernando Cacciola Date: Fri, 5 Dec 2003 22:03:33 +0000 Subject: [PATCH] Fixed result_type [SVN r21155] --- OptionalPointee.html | 4 ++-- include/boost/utility/compare_pointees.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OptionalPointee.html b/OptionalPointee.html index 925a9ae..f5c2b8b 100644 --- a/OptionalPointee.html +++ b/OptionalPointee.html @@ -108,7 +108,7 @@ bool equal_pointees ( OptionalPointee const& x, OptionalPointee const& y return (!x) != (!y) ? false : ( !x ? true : (*x) == (*y) ) ; } template<class OptionalPointee> -struct equal_pointees_t : std::binary_function<bool,OptionalPointee,OptionalPointee> +struct equal_pointees_t : std::binary_function<OptionalPointee,OptionalPointee,bool> { bool operator() ( OptionalPointee const& x, OptionalPointee const& y ) const { return equal_pointees(x,y) ; } @@ -128,7 +128,7 @@ bool less_pointees ( OptionalPointee const& x, OptionalPointee const& y return !y ? false : ( !x ? true : (*x) < (*y) ) ; } template<class OptionalPointee> -struct less_pointees_t : std::binary_function<bool,OptionalPointee,OptionalPointee> +struct less_pointees_t : std::binary_function<OptionalPointee,OptionalPointee,bool> { bool operator() ( OptionalPointee const& x, OptionalPointee const& y ) const { return less_pointees(x,y) ; } diff --git a/include/boost/utility/compare_pointees.hpp b/include/boost/utility/compare_pointees.hpp index e580ae2..e6888a6 100644 --- a/include/boost/utility/compare_pointees.hpp +++ b/include/boost/utility/compare_pointees.hpp @@ -33,7 +33,7 @@ bool equal_pointees ( OptionalPointee const& x, OptionalPointee const& y ) } template -struct equal_pointees_t : std::binary_function +struct equal_pointees_t : std::binary_function { bool operator() ( OptionalPointee const& x, OptionalPointee const& y ) const { return equal_pointees(x,y) ; } @@ -56,7 +56,7 @@ bool less_pointees ( OptionalPointee const& x, OptionalPointee const& y ) } template -struct less_pointees_t : std::binary_function +struct less_pointees_t : std::binary_function { bool operator() ( OptionalPointee const& x, OptionalPointee const& y ) const { return less_pointees(x,y) ; }