T
toton
Hi,
Is there any tool for template debugging, during compilation process
? Just like gdb or visual studio debugger do it during program
execution, a step by step debug for the program,
I am looking for something which will do the process during
compilation and show what is getting substituted for which call.
Otherwise sometimes, compilation fails saying some value_type can't be
substituted by value_type& and etc inside a template call, but it never
reports who calls it, and in turn all of the steps the compiler follow
to substitute it.
Thus I want to get through the template substitution states that the
compiler uses , and the type parameters that it substitutes, and the
exact specialization that it makes, which will give a justification of
the compiler error that it generates, rather than at run time
thanks
abir
Is there any tool for template debugging, during compilation process
? Just like gdb or visual studio debugger do it during program
execution, a step by step debug for the program,
I am looking for something which will do the process during
compilation and show what is getting substituted for which call.
Otherwise sometimes, compilation fails saying some value_type can't be
substituted by value_type& and etc inside a template call, but it never
reports who calls it, and in turn all of the steps the compiler follow
to substitute it.
Thus I want to get through the template substitution states that the
compiler uses , and the type parameters that it substitutes, and the
exact specialization that it makes, which will give a justification of
the compiler error that it generates, rather than at run time
thanks
abir