Can someone show me where exactly to put the '<>' as recommended in the errata to avoid the warning you get when you're trying to overload the ostream operator in linkedListType class?
(b) This type of error occurs when friend functions are used in conjunction with template
classes.
MyList.h:18: warning: friend declaration 'std
stream&
operator<<(std
stream&, const MyList<Type>&
' declares a non-template
function
You need to insert <> after the operator<< in the class definition only. This should get rid of the
warning above.
I've tried putting it on all possible places but I still get the same freakin error message. It's even worse when I try to use the new compiler we were given!