diff --git a/include/boost/function/function_base.hpp b/include/boost/function/function_base.hpp index 4db31c4..6b1129b 100644 --- a/include/boost/function/function_base.hpp +++ b/include/boost/function/function_base.hpp @@ -396,17 +396,14 @@ 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: - manager(in_buffer, out_buffer, op, tag_type()); - return; } + manager(in_buffer, out_buffer, op, tag_type()); + return; } };