|
|
On Tue, 10 Mar 2009 23:41:00 +0100, Warp <war### [at] tagpovrayorg> wrote:
> Fredrik Eriksson <fe79}--at--{yahoo}--dot--{com> wrote:
>> No, because std::vector<bool> is specialised in such a way that:
>> 1 - It is not a container (not as the C++ standard defines them)
>
> I'm not really sure what you mean by that.
>
> std::vector<bool> works mostly like any other container. The only thing
> it cannot do is give you an address to an individual element. Too bad
> that's a cumbersome limitation in some cases.
You described the reasons yourself higher up in your post. The C++
standard describes the requirements for "container" types (section 23.1),
and std::vector<bool> does not satisfy them.
--
FE
Post a reply to this message
|
|