Hi,
Thank you for helping and here is the problem:
#include <string>
#include <fstream>
#include <vector>
#include <iostream>
using std::string;
using std::ifstream;
template<class t>
class Openfile
{
private:
string pavadinimas;
ifstream fin;
public:
typedef ifstream & reference;
Openfile();
Openfile(const char * c);
reference rout();
std::vector<t> & operator>>(std::vector<t> &);
~Openfile();
};
I 'm getting problem when I trying to define the ruot() function and here is the definition:
template<class t>
Openfile<t>::reference Openfile<t>::rout()
{
return fin;
}
When I change the t to string type argument th problem goes away.
My compiler say the I' am missing destructor, constructor before Openfile...