Boost logo

Boost :

Subject: Re: [boost] Boost house style?
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2008-10-16 10:14:17


On Thu, Oct 16, 2008 at 09:29, Robert Jones <robertgbjones_at_[hidden]> wrote:
>
> * why boost::array<unsigned, 1> rather than boost::array<unsigned, 0>?
> Obviously
> an array of zero elements is an odd beast, but it seems to work, with
> begin() equal
> to end() as you'd expect.
>

As I recall, a zero-length array did not used to work, but TR1 allowed
it, so the boost version (relatively recently) added the necessary
specialization. I'm fairly sure that multi_array was written before
this change.


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