Boost logo

Boost :

Subject: Re: [boost] Class-level instrospection
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-10-09 11:17:29


Joel Falcou wrote:
> In the same way, checking for suff like operator[] yields invalid
> class name has_member_function_operator[]. So I propose we hand-code
> the following :
> BOOST_HAS_SUBSCRIPT_OPERATOR( void(int) ) that builds a
> has_subscript_operator<T> class. Other similar operator should be
> handled the same way.

Can't you use a more general macro:

BOOST_NAMED_HAS_MEMBER_FUNCTION(has_subscript_operator, operator[],

In Christ,
Steven Watanabe

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