Seems rad, but is this any different than providing `-S` to gcc or the equivalent option to your compiler of choice?
Also, I assume the author has thought of this, but just throwing this out there....
`-ftemplate-depth1024` (1024 should guarantee a stack overflow)
#include <iostream>
template<int N>
struct ZVTemplate{
static void out(std::ostream& os)
{
ZVTemplate<N>::out(os);
os << "zv was here" << std::endl;
}
};
template<>
struct ZVTemplate<1>{
static void out(std::ostream& os)
{
os << "deftly evaded :)" << std::endl;
}
};
int main(){
ZVTemplate<2>::out(std::cout);
}