|
Boost : |
Subject: Re: [boost] Class-level instrospection
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-10-09 11:17:29
AMDG
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[],
void(int))
In Christ,
Steven Watanabe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk