I have a list class that I wanted to be able to output using <<, but it always gives me an error. I tried doing something simpler for a test and got the same error. Using VS I got this error
main.obj : error LNK2019: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class MyClass<int> &)" (??6@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV01@AAV?$MyClass@H@@@Z) referenced in function _main
Is there some way to do what I'm trying? Here's what I have for my test