From 2bdf958663321407b0a5f69da7110fe163ce9fb4 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 6 Aug 2002 23:32:52 +0000 Subject: [PATCH] Suppress warnings by eliminating unneeded specializations of is_pointer_to_function<>. [SVN r14721] --- .../boost/python/detail/indirect_traits.hpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/include/boost/python/detail/indirect_traits.hpp b/include/boost/python/detail/indirect_traits.hpp index f22c270b..faabecc2 100644 --- a/include/boost/python/detail/indirect_traits.hpp +++ b/include/boost/python/detail/indirect_traits.hpp @@ -75,24 +75,7 @@ struct is_pointer_to_function template struct is_pointer_to_function { - BOOST_STATIC_CONSTANT(bool, value = is_function::value); -}; - -template -struct is_pointer_to_function -{ - BOOST_STATIC_CONSTANT(bool, value = is_function::value); -}; - -template -struct is_pointer_to_function -{ - BOOST_STATIC_CONSTANT(bool, value = is_function::value); -}; - -template -struct is_pointer_to_function -{ + // There's no such thing as a pointer-to-cv-function, so we don't need specializations for those BOOST_STATIC_CONSTANT(bool, value = is_function::value); };