6 Jun
2004
6 Jun
'04
11:28 p.m.
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
::result (true if T::paint() exists) has_member ::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: http://lists.boost.org/MailArchives/boost/msg29007.php Regards, Wolfgang Meyer