'items' is a pointer, and your << needs a reference. You can change it to take a pointer, or do cout << *items;
Ok, so I changed all instances of cout << items; to cout << *items; and it gives me a fatal error: LNK1120: unresolved externals..
And the unresolved externals are...?
Wow...login issues aplenty today!
1>Program01b.obj : error LNK2019: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl <<(class std::basic_ostream<char,struct std::char_traits<char> > &,class OListType<int> const &)" (?<<@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV12@ABV?$OListType@H@@@Z) referenced in function _main
That's the error I get. However, I don't have a char anywhere near my << overloading function.
I think your function is missing a template <class T>
.