template class c2995 operator<< overloading [modified]
-
I have a class template class foo() { template friend ostream& operator<< (ostream& os, TestTemplateCollection& r) {... } int main(int argc, char * argv) { foo; foo**; //error c2995 operator<< allready defined } order doesn't matter both T and B work without the other is there something special you must do to friend template classes work. I do have the header in cased in a #pragma once statmen so its not in the preprocess output twice. -- modified at 22:08 Tuesday 17th April, 2007 a programmer traped in a thugs body**
-
I have a class template class foo() { template friend ostream& operator<< (ostream& os, TestTemplateCollection& r) {... } int main(int argc, char * argv) { foo; foo**; //error c2995 operator<< allready defined } order doesn't matter both T and B work without the other is there something special you must do to friend template classes work. I do have the header in cased in a #pragma once statmen so its not in the preprocess output twice. -- modified at 22:08 Tuesday 17th April, 2007 a programmer traped in a thugs body**