Boost logo

Boost :

Subject: Re: [boost] Alternative implementation for BOOST_PP_VARIADIC_SIZE
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2011-11-14 00:03:53


Edward Diener <eldiener <at> tropicsoft.com> writes:

> I did document this corner case in my VMD but clearly it makes an
> IS_EMPTY macro not 100% reliable, as it makes your solution not 100%
> reliable. It is no use saying that you have a foolproof solution to size
> returning 0, when it is clearly not foolproof. OTOH I personally am not
> against having a solution that is not 100% reliable else I would not
> have put out the latest version of VMD. But, although I can not speak
> for him, I have a strong impression that Paul does not want such code in
> Boost PP.

Variadic data library which does not say that A() has zero arguments is useless
IMO (all the corner cases aside, which we might never hit in practice). This is
the most important use case.

Gennadiy


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