mirror of
https://github.com/boostorg/python.git
synced 2026-01-26 18:52:26 +00:00
Suppress warnings by eliminating unneeded specializations of is_pointer_to_function<>.
[SVN r14721]
This commit is contained in:
@@ -75,24 +75,7 @@ struct is_pointer_to_function
|
||||
template <class T>
|
||||
struct is_pointer_to_function<T*>
|
||||
{
|
||||
BOOST_STATIC_CONSTANT(bool, value = is_function<T>::value);
|
||||
};
|
||||
|
||||
template <class T>
|
||||
struct is_pointer_to_function<T const*>
|
||||
{
|
||||
BOOST_STATIC_CONSTANT(bool, value = is_function<T>::value);
|
||||
};
|
||||
|
||||
template <class T>
|
||||
struct is_pointer_to_function<T volatile*>
|
||||
{
|
||||
BOOST_STATIC_CONSTANT(bool, value = is_function<T>::value);
|
||||
};
|
||||
|
||||
template <class T>
|
||||
struct is_pointer_to_function<T const volatile*>
|
||||
{
|
||||
// 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<T>::value);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user