diff --git a/include/boost/function/function_base.hpp b/include/boost/function/function_base.hpp index 6b1129b..7c70c70 100644 --- a/include/boost/function/function_base.hpp +++ b/include/boost/function/function_base.hpp @@ -507,16 +507,12 @@ namespace boost { functor_manager_operation_type op) { typedef typename get_function_tag::type tag_type; - switch (op) { - case get_functor_type_tag: + if(op == get_functor_type_tag){ out_buffer.members.type.type = &boost::typeindex::type_id().type_info(); out_buffer.members.type.const_qualified = false; out_buffer.members.type.volatile_qualified = false; - return; - - default: + }else{ manager(in_buffer, out_buffer, op, tag_type()); - return; } } };