From 0601af0be4fa66c268f91150e6882dfc3127c4f3 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 28 Jan 2024 03:09:43 +0200 Subject: [PATCH] Remove uses of BOOST_FUNCTION_RETURN --- include/boost/function/function_template.hpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/include/boost/function/function_template.hpp b/include/boost/function/function_template.hpp index 7072ca7..10188db 100644 --- a/include/boost/function/function_template.hpp +++ b/include/boost/function/function_template.hpp @@ -18,8 +18,6 @@ # pragma warning( disable : 4127 ) // "conditional expression is constant" #endif -#define BOOST_FUNCTION_RETURN(X) X - namespace boost { namespace detail { namespace function { @@ -51,7 +49,7 @@ namespace boost { { FunctionPtr f = reinterpret_cast(function_ptr.members.func_ptr); - BOOST_FUNCTION_RETURN(f(static_cast(a)...)); + f(static_cast(a)...); } }; @@ -92,7 +90,7 @@ namespace boost { f = reinterpret_cast(function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.members.obj_ptr); - BOOST_FUNCTION_RETURN((*f)(static_cast(a)...)); + (*f)(static_cast(a)...); } }; @@ -127,7 +125,7 @@ namespace boost { { FunctionObj* f = reinterpret_cast(function_obj_ptr.members.obj_ptr); - BOOST_FUNCTION_RETURN((*f)(static_cast(a)...)); + (*f)(static_cast(a)...); } }; @@ -164,7 +162,7 @@ namespace boost { { MemberPtr* f = reinterpret_cast(function_obj_ptr.data); - BOOST_FUNCTION_RETURN(boost::mem_fn(*f)(static_cast(a)...)); + boost::mem_fn(*f)(static_cast(a)...); } }; #endif @@ -1059,7 +1057,6 @@ public: #endif #undef BOOST_FUNCTION_ARG_TYPE #undef BOOST_FUNCTION_ARG_TYPES -#undef BOOST_FUNCTION_RETURN #if defined(BOOST_MSVC) # pragma warning( pop )