From 5bf6359776dfce81d25d8e67bee9031860689378 Mon Sep 17 00:00:00 2001 From: Ben Magistro Date: Tue, 29 Jul 2025 02:10:24 +0000 Subject: [PATCH] Update to modern style cast Signed-off-by: Ben Magistro --- include/boost/function/function_template.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/function/function_template.hpp b/include/boost/function/function_template.hpp index ac4a5b24..71a7bb87 100644 --- a/include/boost/function/function_template.hpp +++ b/include/boost/function/function_template.hpp @@ -564,7 +564,7 @@ namespace boost { assign_to(const reference_wrapper& f, function_buffer& functor, function_obj_ref_tag) const { - functor.members.obj_ref.obj_ptr = (void *)(f.get_pointer()); + functor.members.obj_ref.obj_ptr = static_cast(f.get_pointer()); functor.members.obj_ref.is_const_qualified = std::is_const::value; functor.members.obj_ref.is_volatile_qualified = std::is_volatile::value; return true;