I have :
QVector<W3D_WORLD> *mw3d = new QVector<W3D_WORLD>;
W3D_WORLD *w3d_world = new W3D_WORLD;
mw3d->push_back(*w3d_world);
mw3d->at(i).w3d_ng++;
QVector<W3D_WORLD> *mw3d = new QVector<W3D_WORLD>;
W3D_WORLD *w3d_world = new W3D_WORLD;
mw3d->push_back(*w3d_world);
mw3d->at(i).w3d_ng++;
To copy to clipboard, switch view to plain text mode
When compiled I have :
increment of data-member 'W3D_WORLD::w3d_ng' in read-only structure
But it works using STL vector ???
vector<W3D_WORLD> *mw3d = new vector<W3D_WORLD>;
vector<W3D_WORLD> *mw3d = new vector<W3D_WORLD>;
To copy to clipboard, switch view to plain text mode
W3D_WORLD is a simple structure .
I dont understand this message. (And... it happens with every structure....)
Any idea ?
Thanks
Bookmarks