I want to initialize a vector in an initialization list of a constructor. The vector consists of objects with a parameterized constructor. What I have is:
Class::Class() :
raster_(std::vector< std::vector<Cell> > (60, std::vector<Cell>(80)))
{
...
How can I call Cell::Cell with two parameters in the above line? The obvious:
raster_(std::vector< std::vector<Cell(true,true)> > (60, std::vector<Cell(true,true)>(80)))
didn't work.
ClassandCell