Boost logo

Boost :

Subject: Re: [boost] Boost house style?
From: Scott McMurray ([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, gregod at, cpdaniel at, john at