Boost logo

Boost Users :

From: Wolfgang Meyer (Wolfgang.Meyer_at_[hidden])
Date: 2004-06-06 18:28:37

> that is something like this: How can I determine if a type T has such and
> such member? It
> would look like something like this:
> has_member<T, paint>::result (true if T::paint() exists)
> has_member<T, m_size>::result (true if T::m_size exists)

AFAIK, checking for arbitrary members at compile time is not possible in a
portable way.

However, it seems that you can check for operators:

  Wolfgang Meyer

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at