Boost logo

Boost :

From: Atry (pop.atry_at_[hidden])
Date: 2007-06-05 02:24:12

Hi everybody, I have an template function, and I want to know if it return
void, but it does not work:

template<typename T>
struct is_foo_void : boost::is_void<BOOST_TYPEOF(T::foo(123))>{};

struct foo_struct
template<typename T>
static void foo(T){}

Yes, I know funtion_traits would be help if I have a non-template function,
but in this case I can't, what should I do?

Boost list run by bdawes at, gregod at, cpdaniel at, john at