From 93ad5963c9d0f247efa295d832b67ebb9e1fdfc9 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 2 Jul 2001 15:25:04 +0000 Subject: [PATCH] function_base.hpp: - Changed "RET" to "type" in the IF template metafunction because the GCC source headers define RET as a macro. [SVN r10509] --- include/boost/function/function_base.hpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/include/boost/function/function_base.hpp b/include/boost/function/function_base.hpp index 251f6e9..79ef170 100644 --- a/include/boost/function/function_base.hpp +++ b/include/boost/function/function_base.hpp @@ -35,7 +35,7 @@ namespace boost { template struct Result { - typedef Then RET; + typedef Then type; }; }; @@ -44,29 +44,28 @@ namespace boost { template struct Result { - typedef Else RET; + typedef Else type; }; }; template struct Selector { - typedef SelectThen RET; + typedef SelectThen type; }; template<> struct Selector { - typedef SelectElse RET; + typedef SelectElse type; }; } // end namespace intimate template struct IF { - typedef typename intimate::Selector::RET select; - typedef typename select::template Result::RET RET; - typedef RET type; + typedef typename intimate::Selector::type select; + typedef typename select::template Result::type type; }; /** @@ -200,8 +199,8 @@ namespace boost { manage(any_pointer functor_ptr, functor_manager_operation_type op) { typedef typename IF<(is_pointer::value), - function_ptr_tag, - function_obj_tag>::RET tag_type; + function_ptr_tag, + function_obj_tag>::type tag_type; return manager(functor_ptr, op, tag_type()); }