Ami
11/25/2008 8:03:00 PM
On Nov 26, 12:55 am, Andrey Tarasevich <andreytarasev...@hotmail.com>
wrote:
> Ami wrote:
> > ...
> > TempClass<T>::TempClass(char *inchar)
> > {
>
> > }
>
> > TempClass<class T> TempClass<T>::~TempClass()
> > {
> > //
>
> > }
> > ...
>
> Now it's even worse, in a sense.
>
> Your destructor definition was originally OK, except for the wrong class
> name
>
> template <class T> CSVReader<T>::~CSVReader()
> {
> //
> }
>
> Now you corrected the class name, but for some reason replaced the
> 'template' keyword. Why did you replace the 'template' keyword? Change
> it back, and your destructor definition will be fine.
>
> Now, the constructor. Can you just take a close look at your constructor
> definition and see how it is quite different from your destructor
> definition? (No, not just the '~' in the name). Once you notice that
> major difference, I'm sure you'll figure out how to fix it.
>
> P.S. I assume you included all the necessary headers, but unless you
> used 'using', it should be 'std::vector' and 'std::ifstream;
>
> --
> Best regards,
> Andrey Tarasevich
Many thanks Andrey. Yes, it was my mistake that i just inlcuded the
proper header files but didnt used the declaration with std:: .
Sorry for being careless. once again thanks for help.