POV-Ray : Newsgroups : povray.off-topic : Haskell arrays : Re: Haskell arrays Server Time
29 Sep 2024 21:25:17 EDT (-0400)
  Re: Haskell arrays  
From: Fredrik Eriksson
Date: 10 Mar 2009 19:03:35
Message: <op.uqlmcghr7bxctx@e6600>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.