
14 Nov
2004
14 Nov
'04
3 a.m.
Paul Mensonides wrote:
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] 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