
31 Jul
2007
31 Jul
'07
9:58 p.m.
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...