
Eric Niebler <eric@boost-consulting.com> writes:
There are cases where this approach doesn't work, however. For example, in xpressive, there is a repeat<>() function, for repeating sub-expressions. For instance:
repeat<3,6>('a')
I've taken a look at repeat and the other primitives and tags are of the form: template<int V> struct a_tag { typedef mpl::int_<V> type } from the tag names it seems like they're not intended to be used in pattern matching, but rather provide an already decoded "action" to be performed. For instance the tag for repeat is called generic_quant_tag and doesn't brings 'repeat' to mind. Is that roughly correct? Would be a pattern like the following be valid? proto::unary_expr<generic_quant_tag<3,proto::_>, proto::_> Thanks, Maurizio