Ver originaltemplate <typename T>class lista; template <typename T>class nodo { friend class lista<T>; private: T valor; nodo<T> *sig; public: nodo(T val){ valor = val; sig = 0; }}; template< typename T >class lista{ // ...};