Witam, gdy próbuje skompilować swój kod to wyrzuca mi błąd na tym etapie:
for (std::vector<Obj>::iterator itr = (*vect).begin(); itr != (*vect).end(); ++itr) // tu zatrzymuje się debugger
{
/* ... */
}
Treść błędu:
Exception thrown: read access violation.
this was nullptr.
If there is a handler for this exception, the program may be safely continued.
Vect to element klasy:
Class Foo
{
std::vector<Obj> *vect;
/* ... */
};