How to determine what my compiler (g ++) does with template code?
I use boost.proto (expression template library) to evaluate some math expressions at compile time. The code correctly evaluates expressions, but I would like to know if the compiler has expanded the expression to the equivalent of hand-written c-code (i.e., removed all temporary ones) or there are some additional compile-time optimizations to do.
Is there any way to see what the compiler did with the templates?
thanks
source share