hola,
no se porque me tira el siguiente error, las respuestas que encontre o
no las entendi o no se refieren a mi caso (declaracion de variables
estaticas)
#include <list>
using namespace std;
template<typename T>
class foo
{
list<T> lst;
bool bar(T elem) {
typedef list<T>::iterator LI; // <-- ACA ESTA EL PROBLEMA
for (LI i = lst.begin(); i != lst.end(); ++i)
;
}
};
int main()
{
foo<int> var;
return 0;
}
template3.cpp: In member function 'bool foo<T>::bar(T)':
template3.cpp:11: error: too few template-parameter-lists
template3.cpp:12: error: 'LI' was not declared in this scope
template3.cpp:12: error: expected `;' before 'i'
template3.cpp:12: error: 'i' was not declared in this scope
alguna idea?
gracias,
francisco.
_______________________________________________
Lista de correo Programacion.
[email protected]
http://listas.fi.uba.ar/mailman/listinfo/programacion