I'm trying to initialize a vector of vector of shared_ptr class of size 19x19 ( _goban ).
class Goban
{
public:
Goban();
~Goban();
private:
vector<vector<shared_ptr<Cell>>> _goban;
};
My constructor is like that :
Goban::Goban() : _goban(18, vector<make_shared<Cell>>(18, new Cell))
{
}
I can't find the way to initialize.
I got this error :
template <class _Tp, class _Allocator /* = allocator<_Tp> */>
Any idea ?