Debugging Template classes

A

Alex Traud

hello ng,

is there a possibility to debug a template class?
i have a template class Polyom<T> (which implements a polynomial) defined in
the file polynom.h.

thanks in advance
alex
 
V

Victor Bazarov

Alex Traud said:
is there a possibility to debug a template class?
i have a template class Polyom<T> (which implements a polynomial) defined in
the file polynom.h.

Please restate the question. Any code can (and should) be debugged.
 
J

Jonathan Turkanis

Alex Traud said:
hello ng,

is there a possibility to debug a template class?
i have a template class Polyom<T> (which implements a polynomial) defined in
the file polynom.h.


Debugging template code can be difficult, because debuggers often
don't show as much information for template speciailizations as for
ordinary classes. If you really get stuck, you might try rewriting
Polyom<T> as a non-template for preliminary debugging, picking some
suitable value for T.

Jonathan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top