Boost logo

Boost :

From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2007-07-31 17:58:20


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 ?

Thanks,
                Stefan

-- 
      ...ich hab' noch einen Koffer in Berlin...

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