I have a class Pixel and a class Image with a function used to update a pixel line. I want to initialize the pixel line. My problem is to initialize the array. Actually I have this :
bool UpdateLine(Pixel line[], int nb)
{
    bool noError = true;
    line = new Pixel[nb];
    for (int r = 0; r < nb; r++)
    {
        line[r] = new Pixel(); // -> line causing troubles
        // do some stuff with my pixel
        [...]
    }
    return noError;
}
When I try this I have :
no viable overloaded '='
How can I initialize each elements for my array ?
 
     
    