Fixing is_convertible for function types; fixes #7246

[SVN r80080]
This commit is contained in:
Michel Morin
2012-08-19 02:03:07 +00:00
parent 551385bd9c
commit 3bfd10465c

View File

@ -25,9 +25,9 @@
#include <boost/type_traits/is_abstract.hpp>
#endif
#include <boost/type_traits/add_rvalue_reference.hpp>
#include <boost/type_traits/is_function.hpp>
#if defined(__MWERKS__)
#include <boost/type_traits/is_function.hpp>
#include <boost/type_traits/remove_reference.hpp>
#endif
@ -299,6 +299,9 @@ struct is_convertible_impl
>::value,
::boost::type_traits::ice_not<
::boost::is_array<To>::value
>::value,
::boost::type_traits::ice_not<
::boost::is_function<To>::value
>::value
>::value) };
};
@ -315,6 +318,9 @@ struct is_convertible_impl
>::value,
::boost::type_traits::ice_not<
::boost::is_array<To>::value
>::value,
::boost::type_traits::ice_not<
::boost::is_function<To>::value
>::value
>::value)
);