From 1694b32e1b761bb686af2df4781359a228603d78 Mon Sep 17 00:00:00 2001 From: Josh Marshall Date: Mon, 29 Apr 2019 12:29:22 -0400 Subject: [PATCH] Fixing another -Wswitch-enum warning. --- include/boost/function/function_base.hpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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; } } };