hmmm ... that might be a problem.
but std::fill() should work. it is still preferable to the for loop, as it is less source code and should be a bit faster (i think it is even automatically parallelised on multi-core cpu's)