Remove useless specialization thanks to is_convertible being more robust.

This commit is contained in:
Gael Guennebaud 2018-07-12 09:59:44 +02:00
parent 8a40dda5a6
commit a4ea611ca7

View File

@ -191,13 +191,6 @@ struct is_symbolic {
enum { value = internal::is_convertible<T,BaseExpr<T> >::value };
};
// Specialization for functions, because is_convertible fails in this case.
// Useful in c++98/11 mode when testing is_symbolic<decltype(fix<N>)>
template<typename T>
struct is_symbolic<T (*)()> {
enum { value = false };
};
/** Represents the actual value of a symbol identified by its tag
*
* It is the return type of SymbolValue::operator=, and most of the time this is only way it is used.