Boost logo

Boost :

Subject: Re: [boost] Alternative implementation for BOOST_PP_VARIADIC_SIZE
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2011-11-13 21:48:03

Edward Diener <eldiener <at>> writes:

> the page. My comment is:
> "#define AMACRO(x) ()
> IS_EMPTY(AMACRO) is true, where of course it should be false.

Are you sure? My gcc (cygwin) says it false.

On the other hand if you define it like this:

#define AMACRO(x,y) anything here

if fails to build.

In any case, as I said previous, this is corner case we should just document,
but size should return zero when we actually did not pass any arguments to the


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