Hi all,
What is wrong with my following codes?
//SortedListOfEvents.hh
....
line 45: template < class Element > class SortedListOfEvents {
....
line 50: template <class Element>
friend ostream& operator << (ostream&, const
SortedListOfEvents < Element > &);
public:
....
private:
....
}
I always got the error messages like:
"SortedListOfEvents.hh": SortedListOfEvents.hh error: declaration of
'class Element' at line 50
"SortedListOfEvents.hh": SortedListOfEvents.hh error: shadows template
parm 'class Element' at line 45
Many thanks,
Patricia