Boost logo

Boost :

Subject: Re: [boost] [preprocessor] PUSH_BACK/_FRONT on empty array broken in 1.49
From: Jan Boehme (jan.boehme_at_[hidden])
Date: 2012-04-03 16:23:37


On 04/03/2012 10:18 PM, Paul Mensonides wrote:
>
> Ticket closed--not a bug.
>
> It *happened* to work in older versions primarily because the tuple
> implementation had a backdoor to all () as a nil tuple is *some* cases.
> However, () is not a nil tuple--particularly not in C99+ or C++11+. There
> is no such thing as a zero-element array (or tuple), and the array
> implementations defer to the tuple implementations. (0, ()) is invalid,
> as it should be (1, ()) just as with (2, (,)) and (3, (,,)).
>
> If there was a nil array, all of the array operations would have to go out
> of there way to handle it specially.

Conclusive. Thank you for explaining.
Regards, Jan.


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