#include<iostream>
#include<vector>
#include<list>
template <class Typ>
class Punkt
{
std::list<Typ*> BB;
std::vector<Typ> CC;
std::vector< Typ* >::iterator iter;// TU NIE DZIALA
std::vector< int* >::iterator iter2; //wszystko ok
public:
Punkt( Typ _x);
Typ x, y, z;
};
template <class Typ>
Punkt<Typ>::Punkt(Typ _x)
{
std::list<Typ> AA;
std::vector< int >::iterator iter3; //DZIAŁA
}
A wydawalao by sie ze blad "Error: expected ";" before "iter"" to nic strasznego :|
Czy ktoś wiec dlaczego nie dziala i co ewentualnie zrobić żeby zaczęło ?