Template Expansion

R

Robin Eidissen

Is it possible to see what template instantiations expand to? It would
be very usful in debugging template metaprograms. I use Visual C++ 2003.
 
V

Victor Bazarov

Robin said:
Is it possible to see what template instantiations expand to? It would
be very usful in debugging template metaprograms. I use Visual C++ 2003.

You could use Comeau C++ (it's a front-end compiler, producing C code
from your C++) to generate the C code, but I cannot seriously advise
anybody to use it since the output must be relatively cryptic.

I do not know of any other tools that could do what you ask. If your
compiler can do that, people in the newsgroup dedicated to that compiler
should know...

V
 

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

Forum statistics

Threads
474,169
Messages
2,570,919
Members
47,460
Latest member
eibafima

Latest Threads

Top