Boost logo

Boost :

From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2004-11-13 22:00:31


Paul Mensonides wrote:
> > -----Original Message-----
> > From: boost-bounces_at_[hidden]
> > [mailto:boost-bounces_at_[hidden]] On Behalf Of Alexander Nasonov
>
> > 1. Use of PP_SEQ interface to "parse" function name and arguments
> >
> > int X::foo(char* buf, size_t len)
> > {
> > BOOST_TRACE_MEM_FUN( (foo)(buf, len) );
> ^^^^^^^^
>
> You can't do this without variadic macros (ala C99). We should have these in
> C++ eventually, but we don't right now and the pp-lib doesn't support them.

I thought I can't but BOOST_PP_POP_FRONT( (foo)(buf, len) ) works on gcc and sunpro!
BOOST_PP_ELEM(1, (foo)(buf, len) ) of course doesn't work but
BOOST_PP_ELEM(0, (foo)(buf, len) ) do.

-- 
Alexander Nasonov

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk