How can I see the temporary code generated by template meta-programming (abreviated as "TMP") in c++ by g++ or by visual studio? It is my understanding that when using TMP, the compiler generates "the implied" c++ code. This would put it somewhere around the parser and before the assembler, so it should (I think) be "readable" (although verbose). Is there a way to do this directly in my own source code?
I am trying to understand TMP. I have been reading through the wikibooks article on the topic. I believe this is also sometimes more generically called [generic programming] and is used extensively in both [stl] and [boost].
Currently, I am using G++ on GNU/Linux, and would much prefer help related to that. I believe this is the correct SE site to post this because the Tour states that good questions may involve "Software development tools", "Specific programming problems" and "Coding techniques", and I am not asking for a specific tool recommendation.