----- Original Message -----
From: "Paul Mensonides" <[EMAIL PROTECTED]>
Actually, this works too:
template<class T> struct is_ptr_to_mem_fun {
enum { value = false };
};
template<class R, class C> struct is_ptr_to_mem_fun<R C::*> {
private:
template<class, class> struct helper {
enum { value = false };
};
template<class U> struct helper<void (U), void (U)> {
enum { value = true };
};
public:
enum { value = helper<void (R), void (R*)>::value };
};
The idea being that the function type (if that is what it is) is adjusted to
a pointer-to-function type.
Paul Mensonides
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost