From d9043b76d6e9ca91ca6973ad565cebb43081ca8a Mon Sep 17 00:00:00 2001 From: Josh Marshall Date: Thu, 25 Apr 2019 13:16:15 -0400 Subject: [PATCH] Changed a switch statement to an if to reduce compiler warnings on more sensitive flags. --- include/boost/function/function_base.hpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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; } };