Depending on if you can rely on a boost gil extension, numeric/pixel_numeric_operations.hpp has a zero_channels function.
Okay, I see.
But the problem is that I don't know the pixel number of channel. It have to be full generic.
That's why I am trying this (unsuccessfully):
comp_pixel_t black;
color_convert( bgil::gray8_pixel_t( 0 ), black );
fill_pixels( tmpv, black);