Barts_706
Importuję właśnie projekt spod Visuala pod DevC++ i mam problem.
W kodzie taki fragment :
template <class container>
inline void DeleteSTLContainer(container& c)
{
for (container::iterator it = c.begin(); it != c.end() ; it++)
{
delete *it;
*it = NULL;
}
}
I scierwnik mi pisze przy kompilacji, ze :
In function `void DeleteSTLContainer(container&)':
expected `;' before "it"
`it' undeclared (first use this function)
I niby czemu, kiedy np. na stronie STL'a jest zdefiniowany iterator i to dla uogolnionych pojemnikow container:
Member Where defined Description
iterator Container Iterator used to iterate through a vector.
Ktos wie, o co biega?
W kodzie taki fragment :
template <class container>
inline void DeleteSTLContainer(container& c)
{
for (container::iterator it = c.begin(); it != c.end() ; it++)
{
delete *it;
*it = NULL;
}
}
I scierwnik mi pisze przy kompilacji, ze :
In function `void DeleteSTLContainer(container&)':
expected `;' before "it"
`it' undeclared (first use this function)
I niby czemu, kiedy np. na stronie STL'a jest zdefiniowany iterator i to dla uogolnionych pojemnikow container:
Member Where defined Description
iterator Container Iterator used to iterate through a vector.
Ktos wie, o co biega?
