Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-07-31 18:07:22


Stefan Seefeld wrote:
> Michael Marcin wrote:
>> Hello,
>>
>> I have something like:
>>
>> class A;
>> boost::array<A*,10> the_array;
>>
>> std::fill( the_array.begin(), the_array.end(), NULL );
>>
>> Which wont compile (at least under Visual Studio 2005) without a cast
>> for NULL... I've had this problem before and decided to try to find
>> an easy cast free expressive solution for it.
>
> I'm quite confused about what this whole thread is all about.
> I would simply write
>
> std::fill(the_array.begin(), the_array.end(), 0);
>
> and move on. What am I missing ?

Does this compile for you?


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