¡@

Home 

c++ Programming Glossary: dumpvector

C++ template function compiles in header but not implementation

http://stackoverflow.com/questions/3040480/c-template-function-compiles-in-header-but-not-implementation

int v for int i 0 i 10 i v.push_back i test std string s dumpVector v s Now here's a working header file dumper2.h #include iostream.. string #include vector void test template class T void dumpVector std vector T v std string sep template class T void dumpVector.. std vector T v std string sep template class T void dumpVector std vector T v std string sep typename std vector T iterator..