Is there a way to check, step by step, what is happening in let say template? I mean, how is it created in stages, etc.?
In the book I mentioned here ,
I found (2 minutes ago) a rather interesting example of how binary code can be implemented as a metafunction.
template <unsigned long N> struct binary { static unsigned const value = binary<N/10>::value << 1
and I think that it would be very useful to see step by step what was done during the creation of this template. Thank you for your responses.
c ++ debugging metaprogramming
There is nothing we can do
source share