Debugging templates is a nightmare. Write a (or several) non template version(s) of your class with concrete types and debug them. Then convert one of them to a template.
Either that or you can stick a lot of "cout << "The error is not here";" statements in your template.
If you go back and reread the quote I posted earlier, you'll see why you can't see source code for templates. The code is generated dynamically for the type you specify (which is probably in assembly, but don't take my word on that). Your template code, as it is, is never actually compiled and linked into your program. The compiler actually "spawns" an instance of your class for a concrete type every time you create an object of your class with a different type. Say if you do something like:
CClass < int > x;CClass < char > y;CClass < CWhatever > z;
the compiler actually spits out 3 seperate classes for you following your template.
[edit] Stupid HTML...
[edit2] P.S. Don't give up on templates! They're really cool once you get the hang of them (kinda like pointers).
/*=========================================*/
/* Chem0sh */
/* Lead Software Engineer & Tech Support */
/*
http://www.eFaces.biz */
/*=========================================*/
[edited by - Chem0sh on June 23, 2002 1:33:23 AM][edited by - Chem0sh on June 23, 2002 1:36:15 AM][edited by - Chem0sh on June 23, 2002 1:36:45 AM]